Description
- Are you reporting a bug, or opening a feature request?
Feature request
I think one of the largest problems with static analyzers is dealing with legacy code. Mypy has a nice documentation about it https://mypy.readthedocs.io/en/latest/existing_code.html
However, what I'm missing is a way to only enable a few checks. In this way I can start by only enabling the most critical checks (eg. name-defined).
As an example, in pylint you can configure the list of checks at the config file, or do --disable=all --enable=check1,check2
http://pylint.pycqa.org/en/latest/user_guide/run.html#command-line-options
thank you guys for this awesome project!
Activity
msullivan commentedon Oct 2, 2019
Something along these lines is under consideration, I think, but we haven't speced it out.
I think it is more likely that we will allow opting out of certain error codes, since the most sensible behavior is to do our full type checking.
As a piece of advice for adopting mypy, though, I think you would have better luck going file-at-at-time than error-code-at-a-time.
ilevkivskyi commentedon Nov 27, 2019
People expect something like this to be supported, so I set the priority to normal. (Maybe it can actually be high?)