--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Sun Feb 14 13:19:05 2016 +0100 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Wed Feb 17 22:11:12 2016 +0100 @@ -11,6 +11,8 @@ from PyQt5.QtCore import QCoreApplication +from Globals import translate + __all__ = ["getTranslatedMessage"] _messages = { @@ -26,6 +28,15 @@ "E113": QCoreApplication.translate( "pep8", "unexpected indentation"), + "E114": QCoreApplication.translate( + "pep8", + "indentation is not a multiple of four (comment)"), + "E115": QCoreApplication.translate( + "pep8", + "expected an indented block (comment)"), + "E116": QCoreApplication.translate( + "pep8", + "unexpected indentation (comment)"), "E121": QCoreApplication.translate( "pep8", "continuation line indentation is not a multiple of four"), @@ -120,6 +131,9 @@ "E265": QCoreApplication.translate( "pep8", "block comment should start with '# '"), + "E266": QCoreApplication.translate( + "pep8", + "too many leading '#' for block comment"), "E271": QCoreApplication.translate( "pep8", "multiple spaces after keyword"), @@ -159,12 +173,18 @@ "E401": QCoreApplication.translate( "pep8", "multiple imports on one line"), + "E402": QCoreApplication.translate( + "pep8", + "module level import not at top of file"), "E501": QCoreApplication.translate( "pep8", "line too long ({0} > {1} characters)"), "E502": QCoreApplication.translate( "pep8", "the backslash is redundant between brackets"), + "W503": QCoreApplication.translate( + "pep8", + "line break before binary operator"), "W601": QCoreApplication.translate( "pep8", ".has_key() is deprecated, use 'in'"), @@ -186,6 +206,9 @@ "E703": QCoreApplication.translate( "pep8", "statement ends with a semicolon"), + "E704": QCoreApplication.translate( + "pep8", + "multiple statements on one line (def)"), "E711": QCoreApplication.translate( "pep8", "comparison to {0} should be {1}"), @@ -201,6 +224,9 @@ "E721": QCoreApplication.translate( "pep8", "do not compare types, use 'isinstance()'"), + "E731": QCoreApplication.translate( + "pep8", + "do not assign a lambda expression, use a def"), "E901": QCoreApplication.translate( "pep8", "{0}: {1}"), @@ -540,10 +566,10 @@ 'CodeStyleFixer', "One blank line inserted."), - "FE302+": lambda n=1: QCoreApplication.translate( + "FE302+": lambda n=1: translate( 'CodeStyleFixer', "%n blank line(s) inserted.", '', n), - "FE302-": lambda n=1: QCoreApplication.translate( + "FE302-": lambda n=1: translate( 'CodeStyleFixer', "%n superfluous lines removed", '', n),