Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kondo linter tests for :metabase/validate-logging #43104

Merged
merged 6 commits into from
May 31, 2024
Merged

Kondo linter tests for :metabase/validate-logging #43104

merged 6 commits into from
May 31, 2024

Conversation

camsaul
Copy link
Member

@camsaul camsaul commented May 24, 2024

Introduce a way to run tests against Kondo linters.

Convert the test comment examples for our custom :metabase/validate-logging linter to tests. This serves as an example of how to write tests for Kondo linters and a proof-of-concept.

To make this work I moved .clj-kondo/hooks to .clj-kondo/src/hooks; tests live in matching test namespace in .clj-kondo/test/hooks.

I added an alias so you can easily run Kondo linter tests with clj -X:dev:test:test/kondo.

@camsaul camsaul requested a review from a team May 24, 2024 03:22
@camsaul camsaul added the no-backport Do not backport this PR to any branch label May 24, 2024
@metabase-bot metabase-bot bot added the .Team/QueryProcessor :hammer_and_wrench: label May 24, 2024
Copy link

replay-io bot commented May 24, 2024

Status Complete ↗︎
Commit 623b3ab
Results
⚠️ 5 Flaky
2578 Passed

(Thread/sleep interval-ms)
(Thread/sleep (long interval-ms))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed reflection warning introduced by #42316

@camsaul camsaul enabled auto-merge (squash) May 24, 2024 03:54
Copy link
Contributor

@crisptrutski crisptrutski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥

Copy link
Contributor

@metamben metamben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@camsaul camsaul merged commit 3d0bc85 into master May 31, 2024
109 checks passed
@camsaul camsaul deleted the kondo- branch May 31, 2024 20:12
Copy link

@camsaul Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/QueryProcessor :hammer_and_wrench:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants