mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 07:31:05 -05:00
Fix honoring pylint config file
The pylint config file is correctly being applied to the pylint command, however, the `-E` flag is actually not honoring any of the disabled messages in the `.python-lint` file. By making this change to the default lint file only the errors are output as expected but honoring the disabled messages. Also, disable the score as the -E flag also does.
This commit is contained in:
parent
d8608a6cf1
commit
d155ff2a3c
3 changed files with 6 additions and 4 deletions
3
.github/linters/.python-lint
vendored
3
.github/linters/.python-lint
vendored
|
@ -1,4 +1,5 @@
|
||||||
[MASTER]
|
[MASTER]
|
||||||
|
errors-only=
|
||||||
|
|
||||||
# A comma-separated list of package or module names from where C extensions may
|
# A comma-separated list of package or module names from where C extensions may
|
||||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||||
|
@ -157,7 +158,7 @@ output-format=text
|
||||||
reports=no
|
reports=no
|
||||||
|
|
||||||
# Activate the evaluation score.
|
# Activate the evaluation score.
|
||||||
score=yes
|
score=no
|
||||||
|
|
||||||
|
|
||||||
[REFACTORING]
|
[REFACTORING]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[MASTER]
|
[MASTER]
|
||||||
|
errors-only=
|
||||||
|
|
||||||
# A comma-separated list of package or module names from where C extensions may
|
# A comma-separated list of package or module names from where C extensions may
|
||||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||||
|
@ -157,7 +158,7 @@ output-format=text
|
||||||
reports=no
|
reports=no
|
||||||
|
|
||||||
# Activate the evaluation score.
|
# Activate the evaluation score.
|
||||||
score=yes
|
score=no
|
||||||
|
|
||||||
|
|
||||||
[REFACTORING]
|
[REFACTORING]
|
||||||
|
|
|
@ -2300,7 +2300,7 @@ RunTestCases()
|
||||||
TestCodebase "XML" "xmllint" "xmllint" ".*\.\(xml\)\$"
|
TestCodebase "XML" "xmllint" "xmllint" ".*\.\(xml\)\$"
|
||||||
TestCodebase "MARKDOWN" "markdownlint" "markdownlint -c $MD_LINTER_RULES" ".*\.\(md\)\$"
|
TestCodebase "MARKDOWN" "markdownlint" "markdownlint -c $MD_LINTER_RULES" ".*\.\(md\)\$"
|
||||||
TestCodebase "BASH" "shellcheck" "shellcheck" ".*\.\(sh\)\$"
|
TestCodebase "BASH" "shellcheck" "shellcheck" ".*\.\(sh\)\$"
|
||||||
TestCodebase "PYTHON" "pylint" "pylint --rcfile $PYTHON_LINTER_RULES -E" ".*\.\(py\)\$"
|
TestCodebase "PYTHON" "pylint" "pylint --rcfile $PYTHON_LINTER_RULES" ".*\.\(py\)\$"
|
||||||
TestCodebase "PERL" "perl" "perl -Mstrict -cw" ".*\.\(pl\)\$"
|
TestCodebase "PERL" "perl" "perl -Mstrict -cw" ".*\.\(pl\)\$"
|
||||||
TestCodebase "PHP" "php" "php -l" ".*\.\(php\)\$"
|
TestCodebase "PHP" "php" "php -l" ".*\.\(php\)\$"
|
||||||
TestCodebase "RUBY" "rubocop" "rubocop -c $RUBY_LINTER_RULES" ".*\.\(rb\)\$"
|
TestCodebase "RUBY" "rubocop" "rubocop -c $RUBY_LINTER_RULES" ".*\.\(rb\)\$"
|
||||||
|
@ -2472,7 +2472,7 @@ if [ "$VALIDATE_PYTHON" == "true" ]; then
|
||||||
# Lint the python files #
|
# Lint the python files #
|
||||||
#########################
|
#########################
|
||||||
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
|
# LintCodebase "FILE_TYPE" "LINTER_NAME" "LINTER_CMD" "FILE_TYPES_REGEX" "FILE_ARRAY"
|
||||||
LintCodebase "PYTHON" "pylint" "pylint --rcfile $PYTHON_LINTER_RULES -E" ".*\.\(py\)\$" "${FILE_ARRAY_PYTHON[@]}"
|
LintCodebase "PYTHON" "pylint" "pylint --rcfile $PYTHON_LINTER_RULES" ".*\.\(py\)\$" "${FILE_ARRAY_PYTHON[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|
Loading…
Reference in a new issue