mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 22:24:09 +00:00
dev: add bb lint cmd (#5354)
* dev: add bb lint cmd * chore: better docstring for bb dev:lint
This commit is contained in:
@@ -24,3 +24,20 @@
|
||||
(shell "yarn dev-electron-app")
|
||||
(println "Waiting for app to build..."))
|
||||
(Thread/sleep 1000))))
|
||||
|
||||
|
||||
(defn lint
|
||||
"Run all lint tasks
|
||||
- clj-kondo lint
|
||||
- carve lint for unused vars
|
||||
- lint for vars that are too large
|
||||
- lint invalid translation entries
|
||||
- Lint datalog rules"
|
||||
[]
|
||||
(doseq [cmd ["clojure -M:clj-kondo --parallel --lint src"
|
||||
"scripts/carve.clj"
|
||||
"scripts/large_vars.clj"
|
||||
"bb lang:invalid-translations"
|
||||
"scripts/lint_rules.clj"]]
|
||||
(println cmd)
|
||||
(shell cmd)))
|
||||
|
||||
Reference in New Issue
Block a user