-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance wrong-arity linter to catch wrong number of args in new case
Currently tools.analyzer.jvm always uses the :arglists metadata to determine whether to mark and AST with a :maybe-wrong-arity key. Thus if someone were to override the :arglists metadata on a function in such a way that a call with a wrong number of args appeared to have a correct number of args, Eastwood would never have warned about it. Now Eastwood ignores the :maybe-wrong-arity key in the ASTs, and does its own independent wrong-arity checking, based upon :arglists provided in its configs if they are there, otherwise the :arglists metadata on the function. Also added a couple more configs to disable unwanted wrong-arity warnings in crucible projects.
- Loading branch information
1 parent
07b9475
commit d803a17
Showing
4 changed files
with
169 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.