mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add check if error not in ignoredError list
It was possible to add an error code more than one time if we don't change caret position after adding ignored error for the first time
This commit is contained in:
@@ -411,7 +411,9 @@ public class Pep8ExternalAnnotator extends ExternalAnnotator<Pep8ExternalAnnotat
|
||||
@Override
|
||||
public void consume(ModifiableModel model) {
|
||||
PyPep8Inspection tool = (PyPep8Inspection)model.getUnwrappedTool(PyPep8Inspection.INSPECTION_SHORT_NAME, file);
|
||||
tool.ignoredErrors.add(myCode);
|
||||
if (!tool.ignoredErrors.contains(myCode)) {
|
||||
tool.ignoredErrors.add(myCode);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user