Browse Source

Fix the linter (#54)

pull/56/head
Michał Chęciński 4 years ago committed by GitHub
parent
commit
01cfa748cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lint-workflow/lint.py

2
lint-workflow/lint.py

@ -37,6 +37,8 @@ class LintFinding(object): @@ -37,6 +37,8 @@ class LintFinding(object):
def get_max_error_level(findings):
"""Get max error level from list of findings."""
if len(findings) == 0:
return 0
max_problem= max(findings, key=lambda finding: PROBLEM_LEVELS[finding.level])
max_problem_level=PROBLEM_LEVELS[max_problem.level]
return max_problem_level

Loading…
Cancel
Save