chore: add block/format to file linter

follow up to #11667
This commit is contained in:
Gabriel Horner
2025-01-07 16:42:10 -05:00
parent 8e2f0c9888
commit b2a3559df8

View File

@@ -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)