diff -r 73ab31b11a81 -r e0ecde23e7b2 eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyChecker.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyChecker.py Mon Apr 12 17:27:45 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyChecker.py Mon Apr 12 18:13:52 2021 +0200 @@ -114,15 +114,15 @@ if code and (self.counters[code] == 1 or self.__repeat): # record the issue with one based line number - self.errors.append( - { - "file": self.__filename, - "line": lineNumber + 1, - "offset": offset, - "code": code, - "args": args, - } - ) + errorInfo = { + "file": self.__filename, + "line": lineNumber + 1, + "offset": offset, + "code": code, + "args": args, + } + if errorInfo not in self.errors: + self.errors.append(errorInfo) def run(self): """