diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/Testsrc/test_code_checks.py | 2 | ||||
-rw-r--r-- | testsuite/pylintrc.conf | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/testsuite/Testsrc/test_code_checks.py b/testsuite/Testsrc/test_code_checks.py index e1214a942..98df358e7 100644 --- a/testsuite/Testsrc/test_code_checks.py +++ b/testsuite/Testsrc/test_code_checks.py @@ -35,7 +35,7 @@ contingent_checks = { "lib/Bcfg2/Server/Admin": ["Reports.py", "Syncdb.py"], "sbin": ["bcfg2-reports"]}, ("pyinotify",): {"lib/Bcfg2/Server/FileMonitor": ["Inotify.py"]}, - ("yum",): {"lib/Bcfg2/Client/Tools": ["YUM*"]}, + ("yum",): {"lib/Bcfg2/Client/Tools": ["YUM.py"]}, ("genshi",): {"lib/Bcfg2/Server/Plugins/Cfg": ["CfgGenshiGenerator.py"]}, ("Cheetah",): {"lib/Bcfg2/Server/Plugins/Cfg": ["CfgCheetahGenerator.py"]}, ("M2Crypto",): {"lib/Bcfg2": ["Encryption.py"], diff --git a/testsuite/pylintrc.conf b/testsuite/pylintrc.conf index 653c68426..94904877b 100644 --- a/testsuite/pylintrc.conf +++ b/testsuite/pylintrc.conf @@ -99,6 +99,10 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme # evaluation report (RP0004). comment=no +# Template used to display messages. This is a python new-style format string +# used to format the massage information. See doc for all details +msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} + [VARIABLES] @@ -131,6 +135,9 @@ ignore-docstrings=yes # Maximum number of characters on a single line. max-line-length=79 +# Regexp for a line that is allowed to be longer than the limit. +ignore-long-lines=^\s*(# )?(<?https?://\S+>?|:(func|class):.*)$ + # Maximum number of lines in a module max-module-lines=1000 @@ -247,8 +254,10 @@ max-locals=20 # Maximum number of return / yield for function / method body max-returns=6 -# Maximum number of branch for function / method body +# Maximum number of branch for function / method body (max-branchs is +# pylint 0.x, max-branches is 1.0) max-branchs=18 +max-branches=18 # Maximum number of statements in function / method body max-statements=75 |