diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-20 17:22:13 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-20 17:22:13 +0300 |
commit | 8814e4ea53dbbf78667dfcd8d6e745cedee634ee (patch) | |
tree | 39e6fafb822b4680da134e8316631e7342b5bf2d /pylint/lint.py | |
parent | 69f5e6975f7978527731622785cb9a9ce739ffb3 (diff) | |
download | pylint-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.py | 8 |
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 #################################################### |