我设置了默认的Flake8Lint.sublime-settings中忽略的特定错误(“ D”,“ E123”,“ E126”):
{
"python_interpreter": "auto",
"builtins": [],
"pyflakes": true,
"pep8": true,
"pydocstyle": true,
"naming": true,
"import-order": true,
"import-order-style": "google",
"complexity": -1,
"pep8_max_line_length": 79,
"select": [],
"ignore": ["D", "E123", "E126"],
"ignore_files": []
}
但是仍然会检测到并显示那些错误。有谁知道如何修理它?谢谢!
答案 0 :(得分:0)
我有两个建议:
如果您不想安装Sublime Linter,则可以查看以下任何更改是否有效:
Function
或将“ ignore”键替换为:
void FAssetTypeActions_CustomMaterialInstance::OpenAssetEditor(const TArray<UObject*>& InObjects, TSharedPtr<IToolkitHost> EditWithinLevelEditor)
{
EToolkitMode::Type Mode = EditWithinLevelEditor.IsValid() ? EToolkitMode::WorldCentric : EToolkitMode::Standalone;
for (auto ObjIt = InObjects.CreateConstIterator(); ObjIt; ++ObjIt)
{
auto MIC = Cast<UMaterialInstanceConstant>(*ObjIt);
if (MIC != NULL)
{
IMaterialEditorModule* MaterialEditorModule = &FModuleManager::LoadModuleChecked<IMaterialEditorModule>("MaterialEditor");
MaterialEditorModule->CreateMaterialInstanceEditor(Mode, EditWithinLevelEditor, MIC);
}
}
}
我知道flake8在今年早些时候改变了忽略规则的方式(here有一个问题),我想您所使用的软件包尚未更新以促进此更改。