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

Wrap performance warnings from the Clojure compiler #416

Closed
vemv opened this issue Aug 21, 2021 · 0 comments
Closed

Wrap performance warnings from the Clojure compiler #416

vemv opened this issue Aug 21, 2021 · 0 comments

Comments

@vemv
Copy link
Collaborator

vemv commented Aug 21, 2021

Create a new linter akin to :reflection and :boxed-math for the Clojure compiler's performance warnings, e.g.:

Performance warning, foo/bar.clj:58:7 - case has int tests, but tested expression is not primitive.

(there's also a less frequent warning related to recur autoboxing - make sure we wrap it too)

It should be disabled by default - generally these don't matter a lot, and sometimes they don't have a clear fix.

vemv added a commit that referenced this issue Aug 21, 2021
@vemv vemv closed this as completed in 9497bf0 Aug 28, 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

No branches or pull requests

1 participant