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

enabled and fixed consider-using-sys-exit pylint warnings #6934

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ disable=
consider-using-in,
too-many-nested-blocks,
too-many-public-methods,
consider-using-sys-exit,
chained-comparison,
too-many-instance-attributes,
too-many-boolean-expressions,
Expand Down
2 changes: 1 addition & 1 deletion addons/naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def validate_regex(expr):
re.compile(expr)
except re.error:
print('Error: "{}" is not a valid regular expression.'.format(expr))
exit(1)
sys.exit(1)


RE_VARNAME = None
Expand Down
2 changes: 1 addition & 1 deletion htmlreport/cppcheck-htmlreport
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def main() -> None:
sys.argv[1]
except IndexError: # no arguments give, print --help
parser.print_help()
quit()
sys.exit(0)

if not options.report_dir:
parser.error('No report directory set.')
Expand Down
Loading