]> thyrsus.com Git - coverity-submit.git/commitdiff
Adapt for new pylint.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 3 Jun 2014 23:33:23 +0000 (19:33 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 3 Jun 2014 23:33:23 +0000 (19:33 -0400)
Makefile
control
coverity-submit

index a5201b3ca4c7fa2c37f42d94fb36b3fb094cd002..e4aa40d66c451221bfc48821f279d4faa3c2d632 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,15 +34,18 @@ 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"
+PYLINTOPTS = --rcfile=/dev/null --reports=n \
+       --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
+       --dummy-variables-rgx='^_'
+SUPPRESSIONS = --disable="C0103,C0111,C0301"
 pylint:
-       @pylint --output-format=parseable $(PYLINTOPTS) coverity-submit
+       @pylint $(PYLINTOPTS) $(SUPPRESSIONS) coverity-submit
 
 clean:
-       rm -f *.pyc *.html coverity-submit.1 MANIFEST ChangeLog SHIPPER.* *~
+       rm -f *.pyc *.html coverity-submit.1 MANIFEST ChangeLog
        rm -f *.tar.gz *.md5
 
 dist: coverity-submit-$(VERS).tar.gz
 
 release: coverity-submit-$(VERS).tar.gz coverity-submit-$(VERS).md5 coverity-submit.html
-       shipper -u -m -t; make clean
+       shipper version=$(VERS) | sh -e -x
diff --git a/control b/control
index ed38a9da8cbf1c2755df4dc2f1f5a4c883f163e3..ad0507d31af2bc445eab5034be4d6d734fbb68ab 100644 (file)
--- a/control
+++ b/control
@@ -20,6 +20,8 @@ XBS-Ohloh-URL: https://www.ohloh.net/p/coverity-submit
 
 Homepage: http://www.catb.org/~esr/coverity-submit
 
+XBS-HTML-Target: index.html
+
 XBS-Logo: coverity-submit.png
 
- 
+XBS-VC-Tag-Template: %(version)s
index fb856bb10eede91d4d7ff76662a7c9c851f1a547..909288610e0ed0e077e272674e790b8f5a4cc45c 100755 (executable)
@@ -4,6 +4,8 @@
 #
 # By Eric S. Raymond, May 2012.  BSD terms apply.
 #
+from __future__ import print_function
+
 import os, pwd, sys, ConfigParser, getopt, tempfile, shutil, datetime, commands
 
 version = "1.12"
@@ -25,7 +27,7 @@ def commit_id():
 
 def deduce_name():
     "Deduce user's full name."
-    if 'USERNAME' in os.environ: 
+    if 'USERNAME' in os.environ:
         p = pwd.getpwnam(os.environ['USERNAME'])
     elif 'LOGNAME' in os.environ:
         p = pwd.getpwnam(os.environ['LOGNAME'])
@@ -35,7 +37,7 @@ def deduce_name():
 
 def deduce_userid():
     "Deduce user's (local) username."
-    if 'USERNAME' in os.environ: 
+    if 'USERNAME' in os.environ:
         p = pwd.getpwnam(os.environ['USERNAME'])
     elif 'LOGNAME' in os.environ:
         p = pwd.getpwnam(os.environ['LOGNAME'])