CodeStyleCheckerDialog: fixed an issue causing some messages being supressed.

Sat, 10 Apr 2021 16:12:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Apr 2021 16:12:29 +0200
changeset 8213
4cdfe4fbdd26
parent 8212
91015c7ace79
child 8214
51f0d3e047ec

CodeStyleCheckerDialog: fixed an issue causing some messages being supressed.

eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py file | annotate | diff | comparison | revisions
diff -r 91015c7ace79 -r 4cdfe4fbdd26 eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Sat Apr 10 15:18:24 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Sat Apr 10 16:12:29 2021 +0200
@@ -881,11 +881,9 @@
         self.__lastFileItem = None
         
         self.checkProgressLabel.setPath(self.tr("Preparing files..."))
-        progress = 0
         
         argumentsList = []
-        for filename in self.files:
-            progress += 1
+        for progress, filename in enumerate(self.files, start=1):
             self.checkProgress.setValue(progress)
             QApplication.processEvents()
             
@@ -995,11 +993,12 @@
                 
                 elif result["securityOk"]:
                     securityOk += 1
-                    continue
+                    if result["code"].startswith("S"):
+                        continue
                 
                 self.results = CodeStyleCheckerDialog.hasResults
                 self.__createResultItem(fn, result)
-
+            
             self.__updateStatistics(
                 codeStyleCheckerStats, fixes, ignoredErrors, securityOk)
         

eric ide

mercurial