擅长:python、mysql、java
<p><code>pylint --generate-rcfile</code>显示如下:</p>
<pre><code>[MESSAGES CONTROL]
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time.
#enable=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once).
#disable=
</code></pre>
<p>所以看起来你的<code>~/.pylintrc</code>应该有一个<code>disable=</code>行在一个<code>[MESSAGES CONTROL]</code>段中。</p>