|
16 | 16 | ["logseq.db.sqlite." "logseq.db.frontend." |
17 | 17 | "logseq.outliner.property" "logseq.outliner.validate" "logseq.outliner.page" "logseq.outliner.cli" "logseq.outliner.db-pipeline" |
18 | 18 | "logseq.api.db-based" |
| 19 | + "logseq.cli" |
19 | 20 | "electron.db" |
20 | 21 | "frontend.handler.db-based." |
21 | 22 | "frontend.inference-worker" |
|
55 | 56 | "deps/outliner/src/logseq/outliner/db_pipeline.cljs" |
56 | 57 | "deps/outliner/src/logseq/outliner/validate.cljs" |
57 | 58 | "deps/outliner/src/logseq/outliner/page.cljs" |
| 59 | + ;; TODO: change to deps/cli/src when :block/name no longer in other cli namespaces |
| 60 | + "deps/cli/src/logseq/cli/commands" |
58 | 61 | "src/main/frontend/handler/db_based" |
59 | 62 | "src/main/frontend/components/class.cljs" |
60 | 63 | "src/main/frontend/components/property.cljs" |
|
95 | 98 | (defn- validate-db-ns-not-in-file |
96 | 99 | [] |
97 | 100 | (let [res (grep-many db-graph-ns file-graph-paths)] |
98 | | - (when-not (and (= 1 (:exit res)) (= "" (:out res))) |
| 101 | + (when-not (or (and (= 1 (:exit res)) (= "" (:out res))) |
| 102 | + ;; TODO: Refactor logseq.cli.common.file to not have file-based code |
| 103 | + (= (:out res) "src/main/frontend/worker/file.cljs: [logseq.cli.common.file :as common-file]\n")) |
99 | 104 | (println "The following db graph namespaces should not be in file graph files:") |
100 | 105 | (println (:out res)) |
101 | 106 | (System/exit 1)))) |
|
117 | 122 | ;; Use file-entity-util and entity-util when in a single graph context |
118 | 123 | "ldb/whiteboard\\?" "ldb/journal\\?" "ldb/page\\?"] |
119 | 124 | res (grep-many multi-graph-fns (into file-graph-paths db-graph-paths))] |
120 | | - (when-not (or (and (= 1 (:exit res)) (= "" (:out res))) |
121 | | - (and (zero? (:exit res)) (string/starts-with? (:out res) "src/main/mobile/components/app.cljs:"))) |
| 125 | + (when-not (and (= 1 (:exit res)) (= "" (:out res))) |
122 | 126 | (println "The following files should not have fns meant to be used in multi-graph contexts:") |
123 | 127 | (println (:out res)) |
124 | 128 | (System/exit 1)))) |
|
0 commit comments