#!/bin/bash output=$(pylint --max-line-length=145 --indent-string="\\t" --module-rgx='[A-Za-z_][-a-zA-Z0-9_]+$' --class-rgx='[A-Za-z_][-a-zA-Z0-9_]+$' "$@" 2>&1 | \ egrep '^\*\*\*|^[CWER]:') if echo "$output" | egrep -v '^\*\*\*' | egrep -q . then echo "$output" exit 1 else exit 0 fi # ************* Module drs_buffer_mod # C: 7:unpack_slice: Missing docstring # /usr/local/lib/python2.6/dist-packages/pylint-0.21.3-py2.6.egg/pylint/checkers/variables.py:308: DeprecationWarning: enumerate exists in builtins since py2.3 # for i, stmt in enumerate(astmts[1:]): # C: 25:DRS_buffer: Missing docstring # /usr/local/lib/python2.6/dist-packages/logilab_astng-0.20.3-py2.6.egg/logilab/astng/scoped_nodes.py:904: DeprecationWarning: chain exists in itertools since py2.3 # for astng in chain(iter((self,)), self.ancestors()): # E: 40:DRS_buffer.__getitem__: Undefined variable 'exceptions' # E: 55:DRS_buffer.__delitem__: Undefined variable 'exceptions' # C: 57:DRS_buffer.extend: Missing docstring # E: 64:DRS_buffer.extend: Undefined variable 'exceptions' # R: 25:DRS_buffer: Too few public methods (1/2) # ************* Module test-drs_buffer_mod # E: 15: expected an indented block