fix(linter): raise error when pylint fails instead of failing silently #341
Annotations
3 errors and 2 warnings
Run lintrunner on all files - Linux
Process completed with exit code 1.
|
Upload SARIF file
Unable to upload "lintrunner.sarif" as it is not valid SARIF:
- instance.runs[0].results[2].locations[0].physicalLocation.artifactLocation.uri is not of a type(s) string
|
Store annotations:
null#L1
Linter exited with return code 1.
STDOUT:
STDERR: Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/__main__.py", line 10, in <module>
pylint.run_pylint()
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/__init__.py", line 35, in run_pylint
PylintRun(argv or sys.argv[1:])
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/lint/run.py", line 161, in __init__
args = _config_initialization(
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/config/config_initialization.py", line 57, in _config_initialization
linter._parse_configuration_file(config_args)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/config/arguments_manager.py", line 255, in _parse_configuration_file
self.config, parsed_args = self._arg_parser.parse_known_args(
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 1858, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 2067, in _parse_known_args
start_index = consume_optional(start_index)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 2007, in consume_optional
take_action(action, args, option_string)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 1919, in take_action
argument_values = self._get_values(action, argument_strings)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 2450, in _get_values
value = self._get_value(action, arg_string)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/argparse.py", line 2483, in _get_value
result = type_func(arg_string)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pylint/config/argument.py", line 124, in _regexp_paths_csv_transfomer
re.compile(
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/re.py", line 252, in compile
return _compile(pattern, flags)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/sre_parse.py", line 672, in _parse
raise source.error("multiple repeat",
re.error: multiple repeat at position 41
|
Store annotations:
lintrunner_adapters/adapters/pyupgrade_linter.py#L44
Local variable `foo` is assigned to but never used.
See https://docs.astral.sh/ruff/rules/unused-variable.
To disable, use ` # noqa: F841`
|
Store annotations:
lintrunner_adapters/adapters/pyupgrade_linter.py#L44
local variable 'foo' is assigned to but never used
See https://www.flake8rules.com/rules/F841.html.
To disable, use ` # noqa: F841`
|
The logs for this run have expired and are no longer available.
Loading