diff -r f293e95b914d -r 29384109306c Plugins/CheckerPlugins/CodeStyleChecker/translations.py --- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Sun Mar 11 16:11:31 2018 +0100 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Sun Mar 11 19:38:33 2018 +0100 @@ -502,6 +502,33 @@ "M201": QCoreApplication.translate( "MiscellaneousChecker", "sort keys - '{0}' should be before '{1}'"), + "M501": QCoreApplication.translate( + "MiscellaneousChecker", + "Python does not support the unary prefix increment"), + "M502": QCoreApplication.translate( + "MiscellaneousChecker", + "using .strip() with multi-character strings is misleading"), + "M503": QCoreApplication.translate( + "MiscellaneousChecker", + """using 'hasattr(x, "__call__")' to test if 'x' is callable is""" + """ unreliable"""), + "M504": QCoreApplication.translate( + "MiscellaneousChecker", + "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"), + "M505": QCoreApplication.translate( + "MiscellaneousChecker", + "'BaseException.message' has been deprecated as of Python 2.6 and is" + " removed in Python 3 - use 'str(e)'"), + "M511": QCoreApplication.translate( + "MiscellaneousChecker", + "Python 3 does not include '.iter*' methods on dictionaries"), + "M512": QCoreApplication.translate( + "MiscellaneousChecker", + "Python 3 does not include '.view*' methods on dictionaries"), + "M513": QCoreApplication.translate( + "MiscellaneousChecker", + "'.next()' does not exist in Python 3"), + "M601": QCoreApplication.translate( "MiscellaneousChecker", "found {0} formatter"), @@ -571,6 +598,9 @@ "M822": QCoreApplication.translate( "MiscellaneousChecker", "mutable default argument of type {0}"), + "M823": QCoreApplication.translate( + "MiscellaneousChecker", + "mutable default argument of function call '{0}'"), "M901": QCoreApplication.translate( "MiscellaneousChecker", "{0}: {1}"), @@ -772,6 +802,7 @@ "M711": ["lgettext"], "M821": ["Dict"], "M822": ["Call"], + "M823": ["dict"], "M901": ["SyntaxError", "Invalid Syntax"], "FWRITE_ERROR": ["IOError"], }