--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Sat Apr 21 17:11:05 2018 +0200 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Sat Apr 21 17:43:41 2018 +0200 @@ -163,13 +163,13 @@ "blank line contains whitespace"), "E301": QCoreApplication.translate( "pycodestyle", - "expected {0} blank line, found 0"), + "expected {0} blank lines, found {1}"), "E302": QCoreApplication.translate( "pycodestyle", "expected {0} blank lines, found {1}"), "E303": QCoreApplication.translate( "pycodestyle", - "too many blank lines ({0})"), + "too many blank lines ({0}), expected {1}"), "E304": QCoreApplication.translate( "pycodestyle", "blank lines found after function decorator"), @@ -179,7 +179,13 @@ " found {1}"), "E306": QCoreApplication.translate( "pycodestyle", - "expected {0} blank line before a nested definition, found 0"), + "expected {0} blank lines before a nested definition, found {1}"), + "E307": QCoreApplication.translate( + "pycodestyle", + "too many blank lines ({0}) before a nested definition, expected {1}"), + "E308": QCoreApplication.translate( + "pycodestyle", + "too many blank lines ({0})"), "W391": QCoreApplication.translate( "pycodestyle", "blank line at end of file"), @@ -723,9 +729,6 @@ "FE261": QCoreApplication.translate( 'CodeStyleFixer', "Whitespace around comment sign corrected."), - "FE301": QCoreApplication.translate( - 'CodeStyleFixer', - "One blank line inserted."), "FE302+": lambda n=1: translate( 'CodeStyleFixer', @@ -790,11 +793,13 @@ "E231": [",;:"], "E241": [",;:"], "E242": [",;:"], - "E301": [1], + "E301": [1, 0], "E302": [2, 1], - "E303": [3], + "E303": [3, 2], "E305": [2, 1], - "E306": [1], + "E306": [1, 0], + "E307": [3, 1], + "E308": [3], "E501": [85, 79], "E605": ["A"], "E711": ["None", "'if cond is None:'"],