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

Suppress line-too-long warnings in the Python target. #1018

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public Strategy getOutputReportingStrategy() {
*/
private boolean shouldIgnore(PylintMessage message) {
// Code generation does not preserve whitespace, so this check is unreliable.
if (message.symbol.equals("trailing-whitespace")) return true;
if (message.symbol.equals("trailing-whitespace") || message.symbol.equals("line-too-long")) return true;
// This filters out Pylint messages concerning missing members in types defined by protocol buffers.
// FIXME: Make this unnecessary, perhaps using https://github.com/nelfin/pylint-protobuf.
Matcher matcher = PylintNoNamePattern.matcher(message.message);
Expand Down