我安装了PyCharm并启用了pep8检查Inspections.如果我写:
def func(argOne):
print(argOne)
Run Code Online (Sandbox Code Playgroud)
IDE向我显示此警告: Argument name should be lowercase
没有选择只忽略此类检查.
我在pep8
这里找不到这样的错误号是所有的命名检查.
如何只忽略其中一些?
我需要这个,因为必须保留当前的项目编码指南.改变整个项目的指导方针太难了.
我只需要禁用一些命名检查.并非都喜欢"Settings"-> "Editor"-> "Inspections"->"PEP8 coding style violation".
例如,应该用PEP8检查类名,而不是函数参数名.
如果我在webstorm中写这样的代码
export class someOne {
constructor(param) {
this.test = param;
}
useTest(){
return this.test;
}
}
console.log(new someOne(123).useTest());
Run Code Online (Sandbox Code Playgroud)
和鼠标悬停在"this.test"上我看到警告:"元素未导出"
这是什么意思?如果我改变.test以.test1警告消失