是否可以在忽略“# pylint: disable="的情况下运行 pylint?指示? [英] Is it possible to run pylint with ignore of "# pylint: disable=" instructions?
本文介绍了是否可以在忽略“# pylint: disable="的情况下运行 pylint?指示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为了识别臭代码,我想运行 pylint
就好像没有 # pylint: disable=*
指令(例如 pylint: disable=broad-except
).
In order to identify smelly code I'd like to run pylint
as if there were no # pylint: disable=*
instructions (e.g. pylint: disable=broad-except
).
是否可以在命令行中禁用 disable
本身?
Is it possible to disable disable
itself on command line?
当然,我可以创建一个临时文件,并删除所有 # pylint: disable
指令,但也许 pylint
足够聪明,可以将其内置..
Of course I could create a temporary file with all # pylint: disable
instructions removed but maybe pylint
is smart enough to have this built in..
推荐答案
您可以通过启用 suppressed-message
pylint --enable=suppressed-message
这篇关于是否可以在忽略“# pylint: disable="的情况下运行 pylint?指示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文