forked from aidecentralized/sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
329 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,311 @@ | ||
[MESSAGES CONTROL] | ||
|
||
# Only show warnings with the listed confidence levels. Leave empty to show | ||
# all. Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE, | ||
# UNDEFINED. | ||
confidence=HIGH, | ||
CONTROL_FLOW, | ||
INFERENCE, | ||
INFERENCE_FAILURE, | ||
UNDEFINED | ||
|
||
# Disable the message, report, category or checker with the given id(s). You | ||
# can either give multiple identifiers separated by comma (,) or put this | ||
# option multiple times (only on the command line, not in the configuration | ||
# file where it should appear only once). You can also use "--disable=all" to | ||
# disable everything first and then re-enable specific checks. For example, if | ||
# you want to run only the similarities checker, you can use "--disable=all | ||
# --enable=similarities". If you want to run only the classes checker, but have | ||
# no Warning level messages displayed, use "--disable=all --enable=classes | ||
# --disable=W". | ||
disable= | ||
trailing-whitespace, | ||
too-many-arguments, | ||
too-many-locals, | ||
fixme, | ||
invalid-name, | ||
unused-import, | ||
no-else-return, | ||
consider-using-from-import, | ||
unused-argument, | ||
import-error, | ||
line-too-long, | ||
missing-final-newline, | ||
missing-function-docstring, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
too-many-try-statements, | ||
too-many-continue-statements, | ||
too-many-asserts, | ||
too-many-assignments, | ||
too-many-else-branches, | ||
too-many-parameters, | ||
too-many-raises, | ||
too-many-returns, | ||
too-many-yields, | ||
too-many-branches, | ||
too-many-statements, | ||
too-many-instance-attributes, | ||
too-many-public-methods, | ||
too-many-return-statements, | ||
too-many-nested-blocks, | ||
too-few-public-methods, | ||
too-many-lines, | ||
too-many-boolean-expressions, | ||
too-many-format-args, | ||
missing-module-docstring, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Get the list of changed Python files | ||
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRTUXB HEAD~1 HEAD | grep -E '\.py$') | ||
|
||
# Check if there are any changed Python files | ||
if [ -z "$CHANGED_FILES" ]; then | ||
echo "No Python files changed." | ||
exit 0 | ||
fi | ||
|
||
# Run Pylint on the changed Python files | ||
echo "Running Pylint on the changed Python files..." | ||
pylint $CHANGED_FILES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters