]> thyrsus.com Git - coverity-submit.git/commitdiff
Passes pylint checking.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 5 Sep 2012 14:40:05 +0000 (10:40 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 5 Sep 2012 14:40:05 +0000 (10:40 -0400)
Makefile
coverity-submit

index 65629a7434bf3d6540ea43c12b53eab788bc18a8..16d387e3c36ca601864039e995063476f3a64c83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Makefile for the coverity-submit tool
 
-VERS=$(shell sed <coverity-submit -n -e '/version="\(.*\)"/s//\1/p')
+VERS=$(shell sed <coverity-submit -n -e '/version *= *"\(.*\)"/s//\1/p')
 
 CODE    = coverity-submit
 DOCS    = README coverity-submit.xml COPYING NEWS
@@ -34,6 +34,10 @@ pychecker:
        @-pychecker --only --limit 50 coverity-submit.py
        @rm -f coverity-submit.py
 
+PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301"
+pylint:
+       @pylint --output-format=parseable $(PYLINTOPTS) coverity-submit
+
 clean:
        rm -f *.pyc *.html coverity-submit.1 MANIFEST ChangeLog SHIPPER.* *~
 
index 69fc5ade037143fdfade57ab0287c57fa051b01b..9567c64f68db0d6736362fa75104b52ee5d87113 100755 (executable)
@@ -6,7 +6,7 @@
 #
 import os, sys, ConfigParser, getopt
 
-version="1.2"
+version = "1.2"
 
 if __name__ == '__main__':
     name = email = project = password = url = None