diff options
author | Endi S. Dewata <edewata@redhat.com> | 2015-01-30 15:49:27 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2015-02-05 11:32:20 -0500 |
commit | dfe55982eb50750fc1e65bce312d884b1604f0b4 (patch) | |
tree | 411d1316c3b4ff78e3a349bb4923bd0e2aae03c7 /dogtag.pylintrc | |
parent | 8fc5acb72ac9fdbc70b8a6e7242890f9dbeccf56 (diff) | |
download | pki-dfe55982eb50750fc1e65bce312d884b1604f0b4.tar.gz pki-dfe55982eb50750fc1e65bce312d884b1604f0b4.tar.xz pki-dfe55982eb50750fc1e65bce312d884b1604f0b4.zip |
Fixed pylint report.
Previously pylint report was saved it into a file which may not be
accessible on a build system. The pylint-build-scan.sh has been
changed to display the report so it will appear in the build log.
The pylint configuration has also been modified to disable C and R
messages by default. This way when other errors or warnings occur
the build will fail without having to check for specific codes.
Some Python codes have been modified to reduce the number of pylint
warnings.
https://fedorahosted.org/pki/ticket/703
Diffstat (limited to 'dogtag.pylintrc')
-rw-r--r-- | dogtag.pylintrc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dogtag.pylintrc b/dogtag.pylintrc index 511a2a07e..495b25c47 100644 --- a/dogtag.pylintrc +++ b/dogtag.pylintrc @@ -37,7 +37,10 @@ load-plugins= # String statement has no effect Used when a string is used as a statement (which of course has no effect). This is a particular case of W0104 with its own message so you can easily disable it if you’re # using those strings as documentation, instead of comments. # W0511 (fixme): Used when a warning note as FIXME or XXX is detected. # W0142: Used when a function or method is called using *args or **kwargs to dispatch arguments. This doesn't improve readability and should be used with care. -disable=W0511,W0105,W0142 +# +# C and R messages are disabled by default. To clean up the code, enable C and +# R messages temporarily. +disable=W0511,W0105,W0142,C,R [REPORTS] @@ -47,12 +50,6 @@ disable=W0511,W0105,W0142 # mypackage.mymodule.MyReporterClass. output-format=text -# Include message's id in output -include-ids=yes - -# Include symbolic ids of messages in output -symbols=no - # Put messages in a separate file for each module / package specified on the # command line instead of printing them on stdout. Reports (if any) will be # written in a file name "pylint_global.[txt|html]". |