mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-19999 Quickfix sets the value of the setting corresponding to its description
This commit is contained in:
@@ -260,10 +260,8 @@ public class PyChainedComparisonsInspection extends PyInspection {
|
||||
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
|
||||
final PsiFile file = descriptor.getStartElement().getContainingFile();
|
||||
InspectionProjectProfileManager.getInstance(project).getInspectionProfile().modifyProfile(model -> {
|
||||
PyChainedComparisonsInspection tool =
|
||||
(PyChainedComparisonsInspection)model.getUnwrappedTool(INSPECTION_SHORT_NAME,
|
||||
file);
|
||||
tool.ignoreConstantInTheMiddle = false;
|
||||
final PyChainedComparisonsInspection tool = (PyChainedComparisonsInspection)model.getUnwrappedTool(INSPECTION_SHORT_NAME, file);
|
||||
tool.ignoreConstantInTheMiddle = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user