[cr149] Suppress pylint error.
** Presubmit ERRORS: 1 ** Pylint (7 files) /home/ubuntu/teamcity/work/space/src/brave/vendor/depot_tools/pylint-2.7 --args-on-stdin (5.63s) failed ************* Module PRESUBMIT PRESUBMIT.py:721:17: E1101: Module 'checkstyle' has no 'run_checkstyle' member (no-member)
This commit is contained in:
+1
-1
@@ -718,7 +718,7 @@ def CheckJavaStyle(_original_check, input_api, output_api):
|
||||
local_path = os.path.join(input_api.PresubmitLocalPath(), 'brave')
|
||||
style_file = os.path.join(input_api.PresubmitLocalPath(), 'brave', 'tools',
|
||||
'android', 'checkstyle', 'brave-style-5.0.xml')
|
||||
violations = checkstyle.run_checkstyle(local_path, style_file, java_files)
|
||||
violations = checkstyle.run_checkstyle(local_path, style_file, java_files) # pylint: disable=no-member
|
||||
warnings = [' ' + str(v) for v in violations if v.is_warning()]
|
||||
errors = [' ' + str(v) for v in violations if v.is_error()]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user