enhance(dev): add linters for db-sync

Fix minor kondo errors. Also removed obvious dead code found by carve linter
This commit is contained in:
Gabriel Horner
2026-02-09 12:24:55 -05:00
parent 8bf63e9715
commit cd7c1ef50e
11 changed files with 103 additions and 81 deletions

View File

@@ -65,4 +65,32 @@ jobs:
run: yarn install --frozen-lockfile
- name: Run unit tests
run: yarn test:node-adapter
run: yarn test:node-adapter
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- name: Set up Clojure
uses: DeLaGuardo/setup-clojure@10.1
with:
cli: ${{ env.CLOJURE_VERSION }}
bb: ${{ env.BABASHKA_VERSION }}
- name: Run clj-kondo lint
run: clojure -M:clj-kondo --lint src test
- name: Carve lint for unused vars
run: bb lint:carve
- name: Lint for vars that are too large
run: bb lint:large-vars