summaryrefslogtreecommitdiff
path: root/pylint/lint.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-20 17:22:13 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-08-20 17:22:13 +0300
commit8814e4ea53dbbf78667dfcd8d6e745cedee634ee (patch)
tree39e6fafb822b4680da134e8316631e7342b5bf2d /pylint/lint.py
parent69f5e6975f7978527731622785cb9a9ce739ffb3 (diff)
downloadpylint-8814e4ea53dbbf78667dfcd8d6e745cedee634ee.tar.gz
--comment flag was obsoleted and it will be removed in Pylint 1.6.
Diffstat (limited to 'pylint/lint.py')
-rw-r--r--pylint/lint.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index 9077296..5fd3d10 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -325,11 +325,7 @@ class PyLinter(configuration.OptionsManagerMixIn,
'statements analyzed. This is used by the global '
'evaluation report (RP0004).'}),
- ('comment',
- {'default': 0, 'type' : 'yn', 'metavar' : '<y_or_n>',
- 'group': 'Reports', 'level': 1,
- 'help' : 'Add a comment according to your evaluation note. '
- 'This is used by the global evaluation report (RP0004).'}),
+ ('comment', utils.deprecated_option(opt_type='yn')),
('confidence',
{'type' : 'multiple_choice', 'metavar': '<levels>',
@@ -1008,8 +1004,6 @@ class PyLinter(configuration.OptionsManagerMixIn,
pnote = previous_stats.get('global_note')
if pnote is not None:
msg += ' (previous run: %.2f/10, %+.2f)' % (pnote, note - pnote)
- if self.config.comment:
- msg = '%s\n%s' % (msg, config.get_note_message(note))
sect.append(ureports.Text(msg))
# some reporting functions ####################################################