IssueRaiser

Feature request: Support a "warning" level for linting

It would be really nice if, like `ignore`, we could select specific issues to turn into warnings rather than errors. That is, it would still output a warning to `stdout`, (perhaps separating errors and warnings), but it would still return with exit status 0. ### Use case: A large, older codebase that contains a lot of linting issues regarding specific rules. (For example, a codebase that predates type annotations.) By allowing warnings, we can make these issues visible to developers for fixing as they lint their changes, but we don't have to have a separate configuration for our pre-commit hooks, CI tools, etc. to ensure they ignore these issues.

Posted by lengau on Dec 16, 2022, 1:47 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

support (Other)

Feature request: Support a "warning" level for linting

lengauDec 16, 2022, 1:47 AM

It would be really nice if, like `ignore`, we could select specific issues to turn into warnings rather than errors. That is, it would still output a warning to `stdout`, (perhaps separating errors and warnings), but it would still return with exit status 0. ### Use case: A large, older codebase that contains a lot of linting issues regarding specific rules. (For example, a codebase that predates type annotations.) By allowing warnings, we can make these issues visible to developers for fixing as they lint their changes, but we don't have to have a separate configuration for our pre-commit hooks, CI tools, etc. to ensure they ignore these issues.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue