Skip to content

Turn all warnings and bare notes into errors #6650

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

Merged
merged 5 commits into from
Apr 11, 2019
Merged

Turn all warnings and bare notes into errors #6650

merged 5 commits into from
Apr 11, 2019

Conversation

msullivan
Copy link
Collaborator

This means that all diagnostics are errors, which maybe have some
notes "attached" to them.
This makes sense, since all diagnostics cause an error exit code.

Fixes #6574.

This means that all diagnostics are errors, which maybe have some
notes "attached" to them.
This makes sense, since all diagnostics cause an error exit code.

Fixes #6574.
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Near the top of errors.py there's a comment stating that severity can be "Either 'error', 'note', or 'warning'." Presumably this should be updated.

@msullivan msullivan merged commit 579705d into master Apr 11, 2019
@msullivan msullivan deleted the no-warnings branch April 11, 2019 22:20
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.

Diagnostic levels are kind of a mess
2 participants