- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果您运行 pylint --generate-rcfile > pylintrc
并查看默认的 rc 文件,您将看到以下禁用警告列表。
为什么默认情况下禁用它们?
disable=print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
raw-checker-failed,
bad-inline-option,
locally-disabled,
locally-enabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating
最佳答案
From the documentation's Frequently Asked Questions...
Why are there a bunch of messages disabled by default?
pylint does have some messages disabled by default, either because they are prone to false positives or that they are opinionated enough for not being included as default messages. But most of the disabled messages are from the Python 3 porting checker, which is disabled by default. It needs special activation with the --py3k flag.
关于python - 为什么默认的 pylintrc 有这么多禁用消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55031339/
我找不到一个简单的 ~/.pylintrc 文件来忽略除错误之外的所有内容。 目前我已将其设置为: [MESSAGES CONTROL] disable=W 从此similar stackoverfl
当我在我的代码上运行 pylint 时收到这个误报警告, E: 56, 7: Instance of 'bool' has no 'status_code' member (but some type
我正在使用 Pylint 检查一堆 .py 文件并进行以下测试: 缩进错误 混合缩进 未使用的变量 我还希望我的 pylintrc 文件尽可能简约。这就是我在乞讨中得到的: [MASTER] # Us
我正在运行Linux。我可以执行 pylint --generate-rcfile > .pylintrc 之类的操作,然后对生成的 .pylintrc 文件进行更改以覆盖默认设置吗?如果是这样,它应
如果您运行 pylint --generate-rcfile > pylintrc 并查看默认的 rc 文件,您将看到以下禁用警告列表。 为什么默认情况下禁用它们? disable=print-sta
我有一个 PyLint 配置文件 .pylintrc,其中定义了一些规则。 但是,对于一个规则,我有相当多的项目导致排得很长。 [TYPECHECK] generated-members = XXX,
当我在 TextMate 中的 python 文件上运行验证语法时,我试图让 pylint 提供 html 输出。我安装了 pycheckmate、pylint,并在 $HOME 中创建了一个 .py
我正在使用 git-lint用于我的 Python 项目。 我的 git 存储库的根目录中有一个 .gitlint.yaml 文件,其中包含 pylint: extensions: - .py
我看到我可以使用 this 为每个 Eclipse 实例更改它解决方案。我想为每个项目设置它。可能吗? 最佳答案 这不是特定于 Eclipse 的,但无论如何它可能有所帮助。根据pylint comm
当 pylint 在 Emacs 中检查文件时,我想删除每行 80 个字符的限制(我正在使用 Emacs 的 Elpy 包)。我在 Debian Wheezy 上,我正在使用向后移植的 Emacs24
我是一名优秀的程序员,十分优秀!