Loading...
Loading...
Review Clojure and ClojureScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing Clojure/ClojureScript code.
npx skill4agent add metabase/metabase clojure-reviewCLOJURE_STYLE_GUIDE.adocThis TODO comment is properly formatted with author and date - nice work!
Good addition of limit 1 to the query - this makes the test more efficient without changing its behavior.
The kondo ignore comment is appropriately placed here
Test name properly ends with -test as required by the style guide.
tblzs'kebab-case!srcenterprise/backend/src[[other-var]]TODO;; TODO (Name 2025-01-01) -- description^:privatedeclareletconddeftest^:parallel-test-test-<number>metabase.<module>.*metabase-enterprise.<module>.*<module>.api<module>.core:clj-kondo/ignore [:metabase/modules]:- <schema>snake_case/api/dashboard/:idGETliblib-bequery-processort2/select-one-fndocs/developers-guide/driver-changelog.mddriverread-column-thunk#_:clj-kondo/ignore| Pattern | Issue |
|---|---|
| Pure functions should be nouns: |
| Missing |
| Should use kebab-case |
| Public var without docstring | Add docstring explaining purpose |
| Missing author/date: |
| Should be |
| Function > 20 lines | Consider breaking up into smaller functions |
| Use singular: |
Query params with | Use kebab-case for query params |
| New API endpoint without tests | Add tests for the endpoint |
This pure function should be named as a noun describing its return value. Considerinstead ofuser.get-user
This public var needs a docstring explaining its purpose, inputs, and outputs.
This function is only used in this namespace, so it should be marked.^:private
Query parameters should use kebab-case. Changetouser_id.user-id