minor tweaks to previous changeset (custom reporter). Closes #105337

authorSylvain Th?nault <sylvain.thenault@logilab.fr>
changesetb43ad9e4c3ee
branchdefault
phasepublic
hiddenno
parent revision#9e6af833f5c3 Added the ability to specify reporter class name as report's 'output-format'.
child revision#6416aabd2d6a integrate patch from Peter Hammond to check protocol completness and avoid false R0903. Closes #104420
files modified by this revision
lint.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1348123099 -7200
# Thu Sep 20 08:38:19 2012 +0200
# Node ID b43ad9e4c3eebdb379c27cc01ac7eb87e1ed994d
# Parent 9e6af833f5c3690a4a3d6fc1e6ee5425f946fb81
minor tweaks to previous changeset (custom reporter). Closes #105337

diff --git a/lint.py b/lint.py
@@ -36,12 +36,11 @@
1  import tokenize
2  from warnings import warn
3 
4  from logilab.common.configuration import UnsupportedAction, OptionsManagerMixIn
5  from logilab.common.optik_ext import check_csv
6 -from logilab.common.modutils import load_module_from_name
7 -from logilab.common.modutils import get_module_part
8 +from logilab.common.modutils import load_module_from_name, get_module_part
9  from logilab.common.interface import implements
10  from logilab.common.textutils import splitstrip
11  from logilab.common.ureports import Table, Text, Section
12  from logilab.common.__pkginfo__ import version as common_version
13 
@@ -185,12 +184,14 @@
14 
15                  ('output-format',
16                   {'default': 'text', 'type': 'string', 'metavar' : '<format>',
17                    'short': 'f',
18                    'group': 'Reports',
19 -                  'help' : 'Set the output format. Available formats are text,\
20 -                 parseable, colorized, msvs (visual studio) and html'}),
21 +                  'help' : 'Set the output format. Available formats are text,'
22 +                  ' parseable, colorized, msvs (visual studio) and html. You '
23 +                  'can also give a reporter class, eg mypackage.mymodule.'
24 +                  'MyReporterClass.'}),
25 
26                  ('include-ids',
27                   {'type' : 'yn', 'metavar' : '<y_or_n>', 'default' : 0,
28                    'short': 'i',
29                    'group': 'Reports',