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

Make the :suspicious-test linter omittable #371

Merged
merged 1 commit into from
May 1, 2021

Conversation

vemv
Copy link
Collaborator

@vemv vemv commented Apr 27, 2021

Supports a specific clojure.test/are pattern, as shown in the included tests.

...This pattern tends to fail better (else a test failure would show up twice), which is why it's a good idea for Eastwood to support it.

  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the readme (if eg adding a new linter)

{:linter :suspicious-test
:if-inside-macroexpansion-of #{'clojure.test/are}
;; only omit the warning if :suspicious-test failed due to a `true` value:
:qualifier true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The concept of a :qualifier is new.

With it we can be more confident that we aren't muting untargeted instances of a given warning.

...this :qualifier value so far only is used in the :suspicious-test. Other linters could eventually benefit from it, would have to give it a look

@vemv vemv mentioned this pull request Apr 28, 2021
2 tasks
Supports a specific `clojure.test/are` pattern.
@vemv
Copy link
Collaborator Author

vemv commented Apr 29, 2021

Ready again

@slipset slipset merged commit b5f4625 into jonase:master May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants