1
0
Эх сурвалжийг харах

chore: add block/format to file linter

follow up to #11667
Gabriel Horner 9 сар өмнө
parent
commit
b2a3559df8

+ 3 - 2
scripts/src/logseq/tasks/dev/db_and_file_graphs.clj

@@ -92,7 +92,7 @@
                        ;; from logseq.db.frontend.schema
                        [:block/namespace :block/properties-text-values :block/pre-block :recent/pages :block/file :block/properties-order
                         :block/repeated :block/deadline :block/scheduled :block/priority :block/marker :block/macros
-                        :block/type]
+                        :block/type :block/format]
                        (map str)
                        (into [;; e.g. block/properties :title
                               "block/properties :"
@@ -108,7 +108,8 @@
         allowed-exceptions #{"{:block/name page-title})))"
                              "{:block/name page-title})"
                              "(when-not (db/get-page journal)"
-                             "(let [value (if datetime? (tc/to-long d) (db/get-page journal))]"}
+                             "(let [value (if datetime? (tc/to-long d) (db/get-page journal))]"
+                             "(dissoc :block/format))]"}
         res (apply shell {:out :string :continue true}
                    "git grep -E" (str "(" (string/join "|" file-concepts) ")")
                    db-graph-paths)