Enable Kondo for tests (part 1) (#24736)
* Fix some small things * Add Kondo to deps.edn to be able to debug custom hooks from REPL * Fix macroexpansion hook for with-temp* without values * Test config (WIP) * More misc fixes * Disable :inline-def for tests * More misc fixes * Fix $ids and mbql-query kondo hooks. * Fix with-temporary-setting-values with namespaced symbols * More misc fixes * Fix the rest of the easy ones * Fix hook for mt/dataset * Horrible hack to work around https://github.com/clj-kondo/clj-kondo/issues/1773 . Custom linter for mbql-query macro * Fix places calling mbql-query with a keyword table name * Fix the last few errors in test/ * Fix errors in enterprise/test and shared/test * Fix driver test errors * Enable linters on CI * Enable unresolved-namespace linter for tests * Appease the namespace linter again * Test fixes
Showing
- .clj-kondo/config.edn 38 additions, 7 deletions.clj-kondo/config.edn
- .clj-kondo/hooks/metabase/test/data.clj 142 additions, 49 deletions.clj-kondo/hooks/metabase/test/data.clj
- .clj-kondo/hooks/metabase/test/util.clj 22 additions, 11 deletions.clj-kondo/hooks/metabase/test/util.clj
- .clj-kondo/hooks/toucan/util/test.clj 13 additions, 10 deletions.clj-kondo/hooks/toucan/util/test.clj
- .dir-locals.el 12 additions, 11 deletions.dir-locals.el
- .github/workflows/backend.yml 26 additions, 9 deletions.github/workflows/backend.yml
- deps.edn 1 addition, 0 deletionsdeps.edn
- enterprise/backend/test/metabase_enterprise/advanced_permissions/api/application_test.clj 4 additions, 4 deletions..._enterprise/advanced_permissions/api/application_test.clj
- enterprise/backend/test/metabase_enterprise/advanced_permissions/api/subscription_test.clj 6 additions, 6 deletions...enterprise/advanced_permissions/api/subscription_test.clj
- enterprise/backend/test/metabase_enterprise/advanced_permissions/models/permissions/application_permissions_test.clj 4 additions, 4 deletions...sions/models/permissions/application_permissions_test.clj
- enterprise/backend/test/metabase_enterprise/advanced_permissions/query_processor/middleware/permissions_test.clj 6 additions, 5 deletions...rmissions/query_processor/middleware/permissions_test.clj
- enterprise/backend/test/metabase_enterprise/models/entity_id_test.clj 7 additions, 6 deletions...ackend/test/metabase_enterprise/models/entity_id_test.clj
- enterprise/backend/test/metabase_enterprise/sandbox/models/group_table_access_policy_test.clj 6 additions, 6 deletions...erprise/sandbox/models/group_table_access_policy_test.clj
- enterprise/backend/test/metabase_enterprise/serialization/load_test.clj 1 addition, 1 deletion...kend/test/metabase_enterprise/serialization/load_test.clj
- enterprise/backend/test/metabase_enterprise/serialization/test_util.clj 1 addition, 3 deletions...kend/test/metabase_enterprise/serialization/test_util.clj
- enterprise/backend/test/metabase_enterprise/sso/integrations/saml_test.clj 2 additions, 2 deletions...d/test/metabase_enterprise/sso/integrations/saml_test.clj
- modules/drivers/redshift/test/metabase/driver/redshift_test.clj 40 additions, 41 deletions...s/drivers/redshift/test/metabase/driver/redshift_test.clj
- modules/drivers/sqlite/test/metabase/driver/sqlite_test.clj 23 additions, 23 deletionsmodules/drivers/sqlite/test/metabase/driver/sqlite_test.clj
- shared/test/metabase/mbql/js_test.cljs 2 additions, 2 deletionsshared/test/metabase/mbql/js_test.cljs
- shared/test/metabase/mbql/util/match_test.cljc 2 additions, 2 deletionsshared/test/metabase/mbql/util/match_test.cljc
Please register or sign in to comment