
org.sonar.plugins.python.pylint.rules.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-python-plugin Show documentation
Show all versions of sonar-python-plugin Show documentation
Enable analysis and reporting on python projects.
<?xml version="1.0" encoding="UTF-8"?> <rules> <rule> <key>C0102</key> <name><![CDATA[Black listed name]]></name> <configKey>C0102</configKey> <description> <![CDATA[Used when the name is listed in the black list (unauthorized names).]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0103</key> <name><![CDATA[Invalid name]]></name> <configKey>C0103</configKey> <description> <![CDATA[Used when the name doesn't match the regular expression associated to its type (constant, variable, class...).]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0111</key> <name><![CDATA[Missing docstring]]></name> <configKey>C0111</configKey> <description> <![CDATA[Used when a module, function, class or method has no docstring. Some special methods like __init__ doesn't necessary require a docstring.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0112</key> <name><![CDATA[Empty docstring]]></name> <configKey>C0112</configKey> <description> <![CDATA[Used when a module, function, class or method has an empty docstring (it would be too easy ;).]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0121</key> <name><![CDATA[Missing required attribute]]></name> <configKey>C0121</configKey> <description> <![CDATA[Used when an attribute required for modules is missing.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0202</key> <name><![CDATA[Class method should have "cls" as first argument]]></name> <configKey>C0202</configKey> <description> <![CDATA[Used when a class method has an attribute different than "cls" as first argument, to easily differentiate them from regular instance methods.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0203</key> <name><![CDATA[Metaclass method should have "mcs" as first argument]]></name> <configKey>C0203</configKey> <description> <![CDATA[Used when a metaclass method has an attribute different the "mcs" as first argument.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0301</key> <name><![CDATA[Line too long]]></name> <configKey>C0301</configKey> <description> <![CDATA[Used when a line is longer than a given number of characters. <p>This rule is deprecated, use {rule:python:LineLength} instead.</p>]]> </description> <priority>MINOR</priority> <status>DEPRECATED</status> </rule> <rule> <key>C0302</key> <name><![CDATA[Too many lines in module]]></name> <configKey>C0302</configKey> <description> <![CDATA[Used when a module has too much lines, reducing its readability.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0321</key> <name><![CDATA[More than one statement on a single line]]></name> <configKey>C0321</configKey> <description> <![CDATA[<p>Used when more than one statement are found on the same line.</p> <p>This rule is deprecated, use {rule:python:OneStatementPerLine} instead.</p>]]> </description> <priority>MINOR</priority> <status>DEPRECATED</status> </rule> <rule> <key>C0322</key> <name><![CDATA[Operator not preceded by a space]]></name> <configKey>C0322</configKey> <description> <![CDATA[Used when one of the following operator (!= | <= | == | >= | < | > | = | \+= |-= | \*= | /= | %) is not preceded by a space.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0323</key> <name><![CDATA[Operator not followed by a space]]></name> <configKey>C0323</configKey> <description> <![CDATA[Used when one of the following operator (!= | <= | == | >= | < | > | = | \+= |-= | \*= | /= | %) is not followed by a space.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0324</key> <name><![CDATA[Comma not followed by a space]]></name> <configKey>C0324</configKey> <description> <![CDATA[Used when a comma (",") is not followed by a space.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0001</key> <name><![CDATA[Syntax error]]></name> <configKey>E0001</configKey> <description> <![CDATA[Used when a syntax error is raised for a module.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0011</key> <name><![CDATA[Unrecognized file option]]></name> <configKey>E0011</configKey> <description> <![CDATA[Used when an unknown inline option is encountered.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0012</key> <name><![CDATA[Bad option value]]></name> <configKey>E0012</configKey> <description> <![CDATA[Used when a bad value for an inline option is encountered.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0100</key> <name><![CDATA[__init__ method is a generator]]></name> <configKey>E0100</configKey> <description> <![CDATA[Used when the special class method __init__ is turned into a generator by a yield in its body.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0101</key> <name><![CDATA[Explicit return in __init__]]></name> <configKey>E0101</configKey> <description> <![CDATA[Used when the special class method __init__ has an explicit return value.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0102</key> <name><![CDATA[Redefined function/class/method]]></name> <configKey>E0102</configKey> <description> <![CDATA[Used when a function / class / method is redefined.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0103</key> <name><![CDATA[Usage of 'break' or 'continue' outside of a loop]]></name> <configKey>E0103</configKey> <description> <![CDATA[Used when break or continue keywords are used outside a loop.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0104</key> <name><![CDATA[Return outside function]]></name> <configKey>E0104</configKey> <description> <![CDATA[Used when a "return" statement is found outside a function or method.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0105</key> <name><![CDATA[Yield outside function]]></name> <configKey>E0105</configKey> <description> <![CDATA[Used when a "yield" statement is found outside a function or method.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0106</key> <name><![CDATA[Return with argument inside generator]]></name> <configKey>E0106</configKey> <description> <![CDATA[Used when a "return" statement with an argument is found outside in a generator function or method (e.g. with some "yield" statements).]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0107</key> <name><![CDATA[Use of a non-existent operator]]></name> <configKey>E0107</configKey> <description> <![CDATA[Used when you attempt to use the C-style pre-increment or pre-decrement operator -- and ++, which doesn't exist in Python.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0202</key> <name><![CDATA[Method hidden by attribute of super class]]></name> <configKey>E0202</configKey> <description> <![CDATA[Used when a class defines a method which is hidden by an instance attribute from an ancestor class.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0203</key> <name><![CDATA[Access to member before its definition]]></name> <configKey>E0203</configKey> <description> <![CDATA[Used when an instance member is accessed before it's actually assigned.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0211</key> <name><![CDATA[Method has no argument]]></name> <configKey>E0211</configKey> <description> <![CDATA[Used when a method which should have the bound instance as first argument has no argument defined.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0213</key> <name><![CDATA[Method should have "self" as first argument]]></name> <configKey>E0213</configKey> <description> <![CDATA[Used when a method has an attribute different the "self" as first argument. This is considered as an error since this is a so common convention that you shouldn't break it!]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0221</key> <name><![CDATA[Implemented interface must be a class]]></name> <configKey>E0221</configKey> <description> <![CDATA[Used when a class claims to implement an interface which is not a class.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0222</key> <name><![CDATA[Missing method from interface]]></name> <configKey>E0222</configKey> <description> <![CDATA[Used when a method declared in an interface is missing from a class implementing this interface]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0501</key> <name><![CDATA[Non ascii characters found but no encoding specified (PEP 263)]]></name> <configKey>E0501</configKey> <description> <![CDATA[Used when some non ascii characters are detected but no encoding is specified, as stated in the PEP 263.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0502</key> <name><![CDATA[Wrong encoding specified]]></name> <configKey>E0502</configKey> <description> <![CDATA[Used when a known encoding is specified but the file doesn't seem to be actually in this encoding.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0503</key> <name><![CDATA[Unknown encoding specified]]></name> <configKey>E0503</configKey> <description> <![CDATA[Used when an encoding is specified, but it's unknown to Python.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0601</key> <name><![CDATA[Using variable before assignment]]></name> <configKey>E0601</configKey> <description> <![CDATA[Used when a local variable is accessed before it's assignment.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0602</key> <name><![CDATA[Undefined variable]]></name> <configKey>E0602</configKey> <description> <![CDATA[Used when an undefined variable is accessed.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0611</key> <name><![CDATA[Undefined name]]></name> <configKey>E0611</configKey> <description> <![CDATA[Used when a name cannot be found in a module.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0701</key> <name><![CDATA[Bad except clauses order]]></name> <configKey>E0701</configKey> <description> <![CDATA[Used when except clauses are not in the correct order (from the more specific to the more generic). If you don't fix the order, some exceptions may not be catched by the most specific handler.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0702</key> <name><![CDATA[Raising only allowed for classes, instances or strings]]></name> <configKey>E0702</configKey> <description> <![CDATA[Used when something which is neither a class, an instance or a string is raised (i.e. a 'TypeError' will be raised).]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0710</key> <name><![CDATA[Raising a new style class which doesn't inherit from BaseException]]></name> <configKey>E0710</configKey> <description> <![CDATA[Used when a new style class which doesn't inherit from BaseException is raised.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E0711</key> <name><![CDATA[NotImplemented raised - should raise NotImplementedError]]></name> <configKey>E0711</configKey> <description> <![CDATA[Used when NotImplemented is raised instead of NotImplementedError]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1001</key> <name><![CDATA[Use of __slots__ on an old style class]]></name> <configKey>E1001</configKey> <description> <![CDATA[Used when an old style class uses the __slots__ attribute.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1002</key> <name><![CDATA[Use of super on an old style class]]></name> <configKey>E1002</configKey> <description> <![CDATA[Used when an old style class uses the super builtin.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1003</key> <name><![CDATA[Bad first argument given to super]]></name> <configKey>E1003</configKey> <description> <![CDATA[Used when another argument than the current class is given as first argument of the super builtin.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1101</key> <name><![CDATA[Access of nonexistent member]]></name> <configKey>E1101</configKey> <description> <![CDATA[Used when a variable is accessed for an nonexistent member.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1102</key> <name><![CDATA[Calling of not callable]]></name> <configKey>E1102</configKey> <description> <![CDATA[Used when an object being called has been inferred to a non callable object]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1103</key> <name><![CDATA[Accessing nonexistent member (type information incomplete)]]></name> <configKey>E1103</configKey> <description> <![CDATA[Used when a variable is accessed for an nonexistent member, but Pylint was not able to interpret all possible types of this variable.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1111</key> <name><![CDATA[Assigning to function call which doesn't return]]></name> <configKey>E1111</configKey> <description> <![CDATA[Used when an assignment is done on a function call but the inferred function doesn't return anything.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1120</key> <name><![CDATA[Too few arguments]]></name> <configKey>E1120</configKey> <description> <![CDATA[Used when a function call passes too few arguments.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1121</key> <name><![CDATA[Too many positional arguments for function call]]></name> <configKey>E1121</configKey> <description> <![CDATA[Used when a function call passes too many positional arguments.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1122</key> <name><![CDATA[Duplicate keyword argument in function call]]></name> <configKey>E1122</configKey> <description> <![CDATA[Used when a function call passes the same keyword argument multiple times.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1123</key> <name><![CDATA[Passing unexpected keyword argument in function call]]></name> <configKey>E1123</configKey> <description> <![CDATA[Used when a function call passes a keyword argument that doesn't correspond to one of the function's parameter names.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1124</key> <name><![CDATA[Multiple values passed for parameter in function call]]></name> <configKey>E1124</configKey> <description> <![CDATA[Used when a function call would result in assigning multiple values to a function parameter, one value from a positional argument and one from a keyword argument.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E9900</key> <name><![CDATA[Unsupported format character]]></name> <configKey>E1300</configKey> <description> <![CDATA[Used when a unsupported format character is used in a format string.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1301</key> <name><![CDATA[Format string ends in middle of conversion specifier]]></name> <configKey>E1301</configKey> <description> <![CDATA[Used when a format string terminates before the end of a conversion specifier.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1302</key> <name><![CDATA[Mixing named and unnamed conversion specifiers in format string]]></name> <configKey>E1302</configKey> <description> <![CDATA[Used when a format string contains both named (e.g. '%(foo)d') and unnamed (e.g. '%d') conversion specifiers. This is also used when a named conversion specifier contains * for the minimum field width and/or precision.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1303</key> <name><![CDATA[Expected mapping for format string]]></name> <configKey>E1303</configKey> <description> <![CDATA[Used when a format string that uses named conversion specifiers is used with an argument that is not a mapping.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1304</key> <name><![CDATA[Missing key in format string dictionary]]></name> <configKey>E1304</configKey> <description> <![CDATA[Used when a format string that uses named conversion specifiers is used with a dictionary that doesn't contain all the keys required by the format string.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1305</key> <name><![CDATA[Too many arguments for format string]]></name> <configKey>E1305</configKey> <description> <![CDATA[Used when a format string that uses unnamed conversion specifiers is given too few arguments.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1306</key> <name><![CDATA[Not enough arguments for format string]]></name> <configKey>E1306</configKey> <description> <![CDATA[Used when a format string that uses unnamed conversion specifiers is given too many arguments]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0001</key> <name><![CDATA[Analysis failed]]></name> <configKey>F0001</configKey> <description> <![CDATA[Used when an error occurred preventing the analysis of a module (unable to find it for instance).]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0002</key> <name><![CDATA[Internal pylint error]]></name> <configKey>F0002</configKey> <description> <![CDATA[Used when an unexpected error occurred while building the ASTNG representation. This is usually accompanied by a traceback. Please report such errors!]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0003</key> <name><![CDATA[Ignored builtin module]]></name> <configKey>F0003</configKey> <description> <![CDATA[Used to indicate that the user asked to analyze a builtin module which has been skipped.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0004</key> <name><![CDATA[Unexpected inferred value]]></name> <configKey>F0004</configKey> <description> <![CDATA[Used to indicate that some value of an unexpected type has been inferred.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0010</key> <name><![CDATA[Error while code parsing]]></name> <configKey>F0010</configKey> <description> <![CDATA[Used when an exception occurred while building the ASTNG representation which could be handled by ASTNG.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0202</key> <name><![CDATA[Unable to check methods signature]]></name> <configKey>F0202</configKey> <description> <![CDATA[Used when PyLint has been unable to check methods signature compatibility for an unexpected reason. Please report this kind if you don't make sense of it.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0220</key> <name><![CDATA[Failed to resolve interfaces]]></name> <configKey>F0220</configKey> <description> <![CDATA[Used when a PyLint as failed to find interfaces implemented by a class]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0321</key> <name><![CDATA[Format detection error]]></name> <configKey>F0321</configKey> <description> <![CDATA[Used when an unexpected error occurred in bad format detection. Please report the error if it occurs.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>F0401</key> <name><![CDATA[Unable to import module]]></name> <configKey>F0401</configKey> <description> <![CDATA[Used when pylint has been unable to import a module.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>I0001</key> <name><![CDATA[Unable to run raw checkers on built-in module]]></name> <configKey>I0001</configKey> <description> <![CDATA[Used to inform that a built-in module has not been checked using the raw checkers.]]> </description> <priority>INFO</priority> </rule> <rule> <key>I0010</key> <name><![CDATA[Unable to consider inline option]]></name> <configKey>I0010</configKey> <description> <![CDATA[Used when an inline option is either badly formatted or can't be used inside modules.]]> </description> <priority>INFO</priority> </rule> <rule> <key>I0011</key> <name><![CDATA[Locally disabling message]]></name> <configKey>I0011</configKey> <description> <![CDATA[Used when an inline option disables a message or a messages category.]]> </description> <priority>INFO</priority> </rule> <rule> <key>I0012</key> <name><![CDATA[Locally enabling message]]></name> <configKey>I0012</configKey> <description> <![CDATA[Used when an inline option enables a message or a messages category.]]> </description> <priority>INFO</priority> </rule> <rule> <key>I0013</key> <name><![CDATA[Ignoring entire file]]></name> <configKey>I0013</configKey> <description> <![CDATA[Used to inform that the file will not be checked]]> </description> <priority>INFO</priority> </rule> <rule> <key>R0201</key> <name><![CDATA[Method could be a function]]></name> <configKey>R0201</configKey> <description> <![CDATA[Used when a method doesn't use its bound instance, and so could be written as a function.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0401</key> <name><![CDATA[Cyclic import]]></name> <configKey>R0401</configKey> <description> <![CDATA[Used when a cyclic import between two or more modules is detected.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0801</key> <name><![CDATA[Similar lines]]></name> <configKey>R0801</configKey> <description> <![CDATA[Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0901</key> <name><![CDATA[Too many ancestors]]></name> <configKey>R0901</configKey> <description> <![CDATA[Used when class has too many parent classes, try to reduce this to get a more simple (and so easier to use) class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0902</key> <name><![CDATA[Too many instance attributes]]></name> <configKey>R0902</configKey> <description> <![CDATA[Used when class has too many instance attributes, try to reduce this to get a more simple (and so easier to use) class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0903</key> <name><![CDATA[Too few public methods]]></name> <configKey>R0903</configKey> <description> <![CDATA[Used when class has too few public methods, so be sure it's really worth it.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0904</key> <name><![CDATA[Too many public methods]]></name> <configKey>R0904</configKey> <description> <![CDATA[Used when class has too many public methods, try to reduce this to get a more simple (and so easier to use) class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0911</key> <name><![CDATA[Too many return statements]]></name> <configKey>R0911</configKey> <description> <![CDATA[Used when a function or method has too many return statement, making it hard to follow.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0912</key> <name><![CDATA[Too many branches]]></name> <configKey>R0912</configKey> <description> <![CDATA[Used when a function or method has too many branches, making it hard to follow.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0913</key> <name><![CDATA[Too many arguments]]></name> <configKey>R0913</configKey> <description> <![CDATA[Used when a function or method takes too many arguments.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0914</key> <name><![CDATA[Too many local variables]]></name> <configKey>R0914</configKey> <description> <![CDATA[Used when a function or method has too many local variables.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0915</key> <name><![CDATA[Too many statements]]></name> <configKey>R0915</configKey> <description> <![CDATA[Used when a function or method has too many statements. You should then split it in smaller functions / methods.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0921</key> <name><![CDATA[Abstract class not referenced]]></name> <configKey>R0921</configKey> <description> <![CDATA[Used when an abstract class is not used as ancestor anywhere.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0922</key> <name><![CDATA[Abstract class used too few times]]></name> <configKey>R0922</configKey> <description> <![CDATA[Used when an abstract class is used less than X times as ancestor.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>R0923</key> <name><![CDATA[Interface not implemented]]></name> <configKey>R0923</configKey> <description> <![CDATA[Used when an interface class is not implemented anywhere.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0101</key> <name><![CDATA[Unreachable code]]></name> <configKey>W0101</configKey> <description> <![CDATA[Used when there is some code behind a "return" or "raise" statement, which will never be accessed.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0102</key> <name><![CDATA[Dangerous default value as argument]]></name> <configKey>W0102</configKey> <description> <![CDATA[Used when a mutable value as list or dictionary is detected in a default value for an argument.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0104</key> <name><![CDATA[Statement seems to have no effect]]></name> <configKey>W0104</configKey> <description> <![CDATA[Used when a statement doesn't have (or at least seems to) any effect.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0105</key> <name><![CDATA[String statement has no effect]]></name> <configKey>W0105</configKey> <description> <![CDATA[Used when a string is used as a statement (which of course has no effect). This is a particular case of W0104 with its own message so you can easily disable it if you're using those strings as documentation, instead of comments.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0106</key> <name><![CDATA[Expression is assigned to nothing]]></name> <configKey>W0106</configKey> <description> <![CDATA[Used when an expression that is not a function call is assigned to nothing. Probably something else was intended.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0107</key> <name><![CDATA[Unnecessary pass statement]]></name> <configKey>W0107</configKey> <description> <![CDATA[Used when a "pass" statement that can be avoided is encountered.)]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0108</key> <name><![CDATA[Lambda may not be necessary]]></name> <configKey>W0108</configKey> <description> <![CDATA[Used when the body of a lambda expression is a function call on the same argument list as the lambda itself; such lambda expressions are in all but a few cases replaceable with the function being called in the body of the lambda.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0109</key> <name><![CDATA[Duplicate key in dictionary]]></name> <configKey>W0109</configKey> <description> <![CDATA[Used when a dictionary expression binds the same key multiple times.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0122</key> <name><![CDATA[Use of the exec statement]]></name> <configKey>W0122</configKey> <description> <![CDATA[Used when you use the "exec" statement, to discourage its usage. That doesn't mean you can not use it!]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0141</key> <name><![CDATA[Used black listed builtin function]]></name> <configKey>W0141</configKey> <description> <![CDATA[Used when a black listed builtin function is used (see the bad-function option). Usual black listed functions are the ones like map, or filter, where Python offers now some cleaner alternative like list comprehension.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0142</key> <name><![CDATA[Used * or ** magic]]></name> <configKey>W0142</configKey> <description> <![CDATA[Used when a function or method is called using `*args` or `**kwargs` to dispatch arguments. This doesn't improve readability and should be used with care.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0150</key> <name><![CDATA[Statement in finally block may swallow exception]]></name> <configKey>W0150</configKey> <description> <![CDATA[Used when a break or a return statement is found inside the finally clause of a try...finally block: the exceptions raised in the try clause will be silently swallowed instead of being re-raised.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0199</key> <name><![CDATA[Assert called on a 2-uple]]></name> <configKey>W0199</configKey> <description> <![CDATA[A call of assert on a tuple will always evaluate to true if the tuple is not empty, and will always evaluate to false if it is. Did you mean 'assert x,y'?]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0201</key> <name><![CDATA[Attribute defined outside __init__]]></name> <configKey>W0201</configKey> <description> <![CDATA[Used when an instance attribute is defined outside the __init__ method.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0211</key> <name><![CDATA[Static method with "self" or "cls" as first argument]]></name> <configKey>W0211</configKey> <description> <![CDATA[Used when a static method has "self" or "cls" as first argument.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0212</key> <name><![CDATA[Access to a protected member of a client class]]></name> <configKey>W0212</configKey> <description> <![CDATA[Used when a protected member (i.e. class member with a name beginning with an underscore) is access outside the class or a descendant of the class where it's defined.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0221</key> <name><![CDATA[Arguments number discrepancy]]></name> <configKey>W0221</configKey> <description> <![CDATA[Used when a method has a different number of arguments than in the implemented interface or in an overridden method.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0222</key> <name><![CDATA[Signature discrepancy]]></name> <configKey>W0222</configKey> <description> <![CDATA[Used when a method signature is different than in the implemented interface or in an overridden method.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0223</key> <name><![CDATA[Abstract method is not overridden]]></name> <configKey>W0223</configKey> <description> <![CDATA[Used when an abstract method (i.e. raise NotImplementedError) is not overridden in concrete class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0231</key> <name><![CDATA[__init__ method from base class is not called]]></name> <configKey>W0231</configKey> <description> <![CDATA[Used when an ancestor class method has an __init__ method which is not called by a derived class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0232</key> <name><![CDATA[Class has no __init__ method]]></name> <configKey>W0232</configKey> <description> <![CDATA[Used when a class has no __init__ method, neither its parent classes.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0233</key> <name><![CDATA[__init__ method from a non direct base class is called]]></name> <configKey>W0233</configKey> <description> <![CDATA[Used when an __init__ method is called on a class which is not in the direct ancestors for the analysed class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0301</key> <name><![CDATA[Unnecessary semicolon]]></name> <configKey>W0301</configKey> <description> <![CDATA[Used when a statement is ended by a semi-colon (";"), which isn't necessary(that's python, not C ;).]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0311</key> <name><![CDATA[Bad indentation]]></name> <configKey>W0311</configKey> <description> <![CDATA[Used when an unexpected number of indentation's tabulations or spaces has been found.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0312</key> <name><![CDATA[Mixed tabs/spaces indentation]]></name> <configKey>W0312</configKey> <description> <![CDATA[Used when there are some mixed tabs and spaces in a module.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0331</key> <name><![CDATA[Use of the <> operator]]></name> <configKey>W0331</configKey> <description> <![CDATA[Used when the deprecated "<>" operator is used instead of "!=".]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0332</key> <name><![CDATA[Use l as long integer identifier]]></name> <configKey>W0332</configKey> <description> <![CDATA[Used when a lower case "l" is used to mark a long integer. You should use an upper case "L" since the letter "l" looks too much like the digit "1"]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0333</key> <name><![CDATA[Use of the `` operator]]></name> <configKey>W0333</configKey> <description> <![CDATA[Used when the deprecated "``" (backtick) operator is used instead of the str() function.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0401</key> <name><![CDATA[Wildcard import]]></name> <configKey>W0401</configKey> <description> <![CDATA[Used when `from module import *` is detected.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0402</key> <name><![CDATA[Uses of a deprecated module]]></name> <configKey>W0402</configKey> <description> <![CDATA[Used a module marked as deprecated is imported.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0403</key> <name><![CDATA[Relative import]]></name> <configKey>W0403</configKey> <description> <![CDATA[Used when an import relative to the package directory is detected.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0404</key> <name><![CDATA[Reimport]]></name> <configKey>W0404</configKey> <description> <![CDATA[Used when a module is reimported multiple times.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0406</key> <name><![CDATA[Module imports itself]]></name> <configKey>W0406</configKey> <description> <![CDATA[Used when a module is importing itself.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0410</key> <name><![CDATA[__future__ import is not the first non docstring statement]]></name> <configKey>W0410</configKey> <description> <![CDATA[Python 2.5 and greater require __future__ import to be the first non docstring statement in the module.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0511</key> <name><![CDATA[Task marker found]]></name> <configKey>W0511</configKey> <description> <![CDATA[Used when a warning note as FIXME or XXX is detected.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0601</key> <name><![CDATA[Global variable undefined at the module level]]></name> <configKey>W0601</configKey> <description> <![CDATA[Used when a variable is defined through the "global" statement but the variable is not defined in the module scope.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0602</key> <name><![CDATA[Unassigned global variable]]></name> <configKey>W0602</configKey> <description> <![CDATA[Used when a variable is defined through the "global" statement but no assignment to this variable is done.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0603</key> <name><![CDATA[Using the global statement]]></name> <configKey>W0603</configKey> <description> <![CDATA[Used when you use the "global" statement to update a global variable. PyLint just tries to discourage this usage. That doesn't mean you can not use it!]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0604</key> <name><![CDATA[Using the global statement at the module level]]></name> <configKey>W0604</configKey> <description> <![CDATA[Used when you use the "global" statement at the module level since it has no effect]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0611</key> <name><![CDATA[Unused import]]></name> <configKey>W0611</configKey> <description> <![CDATA[Used when an imported module or variable is not used.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0612</key> <name><![CDATA[Unused variable]]></name> <configKey>W0612</configKey> <description> <![CDATA[Used when a variable is defined but not used.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0613</key> <name><![CDATA[Unused argument]]></name> <configKey>W0613</configKey> <description> <![CDATA[Used when a function or method argument is not used.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0614</key> <name><![CDATA[Unused import from wildcard import]]></name> <configKey>W0614</configKey> <description> <![CDATA[Used when an imported module or variable is not used from a 'from X import *'style import.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0621</key> <name><![CDATA[Redefining name from outer scope]]></name> <configKey>W0621</configKey> <description> <![CDATA[Used when a variable's name hides a name defined in the outer scope.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0622</key> <name><![CDATA[Redefining built-in]]></name> <configKey>W0622</configKey> <description> <![CDATA[Used when a variable or function override a built-in.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0631</key> <name><![CDATA[Using possibly undefined loop variable]]></name> <configKey>W0631</configKey> <description> <![CDATA[Used when an loop variable (i.e. defined by a for loop or a list comprehension or a generator expression) is used outside the loop.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0701</key> <name><![CDATA[Raising a string exception]]></name> <configKey>W0701</configKey> <description> <![CDATA[Used when a string exception is raised.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0702</key> <name><![CDATA[No exception type(s) specified]]></name> <configKey>W0702</configKey> <description> <![CDATA[Used when an except clause doesn't specify exceptions type to catch.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0703</key> <name><![CDATA[Catching too general exception]]></name> <configKey>W0703</configKey> <description> <![CDATA[Used when an except catches a too general exception, possibly burying unrelated errors.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0704</key> <name><![CDATA[Except doesn't do anything]]></name> <configKey>W0704</configKey> <description> <![CDATA[Used when an except clause does nothing but "pass" and there is no "else" clause.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0710</key> <name><![CDATA[Exception doesn't inherit from standard "Exception" class]]></name> <configKey>W0710</configKey> <description> <![CDATA[Used when a custom exception class is raised but doesn't inherit from the builtin "Exception" class.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1001</key> <name><![CDATA[Use of "property" on an old style class]]></name> <configKey>W1001</configKey> <description> <![CDATA[Used when PyLint detects the use of the builtin "property" on an old style class while this is relying on new style classes features]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1111</key> <name><![CDATA[Assigning to function call which only returns None]]></name> <configKey>W1111</configKey> <description> <![CDATA[Used when an assignment is done on a function call but the inferred function returns nothing but None.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1201</key> <name><![CDATA[Specify string format arguments as logging function parameters]]></name> <configKey>W1201</configKey> <description> <![CDATA[Used when a logging statement has a call form of "logging.<loggingmethod>(format_string % (format_args...))". Such calls should leave string interpolation to the logging method itself and be written "logging.<loggingmethod>(format_string, format_args...)" so that the program may avoid incurring the cost of the interpolation in those cases in which no message will be logged. For more, see http://www.python.org/dev/peps/pep-0282/.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1300</key> <name><![CDATA[Format string dictionary key should be a string]]></name> <configKey>W1300</configKey> <description> <![CDATA[Used when a format string that uses named conversion specifiers is used with a dictionary whose keys are not all strings.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1301</key> <name><![CDATA[Unused key in format string dictionary]]></name> <configKey>W1301</configKey> <description> <![CDATA[Used when a format string that uses named conversion specifiers is used with adictionary that contains keys not required by the format string.]]> </description> <priority>MINOR</priority> </rule> <!-- removed in in pylint 0.22 --> <!-- E0503 (Unknown encoding specified) --> <!-- removed in in pylint 0.23 --> <!-- E0501 (Non ascii characters found but no encoding specified (PEP 263)) --> <!-- E0502 Wrong encoding specified --> <!-- F0321 Format detection error in %r --> <!-- new in pylint 0.24 --> <rule> <key>E1200</key> <name><![CDATA[Unsupported logging format character]]></name> <configKey>E1200</configKey> <description> <![CDATA[Used when an unsupported format character is used in a logging statement format string.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1201</key> <name><![CDATA[Logging format string ends in middle of conversion specifier]]></name> <configKey>E1201</configKey> <description> <![CDATA[Used when a logging statement format string terminates before the end of a conversion specifier.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1205</key> <name><![CDATA[Too many arguments for logging format string]]></name> <configKey>E1205</configKey> <description> <![CDATA[Used when a logging format string is given too few arguments.]]> </description> <priority>MAJOR</priority> </rule> <rule> <key>E1206</key> <name><![CDATA[Not enough arguments for logging format string]]></name> <configKey>E1206</configKey> <description> <![CDATA[Used when a logging format string is given too many arguments]]> </description> <priority>MAJOR</priority> </rule> <!-- Added between pylint 0.25 and 1.2.1 --> <rule> <key>C0204</key> <name><![CDATA[Metaclass class method first argument]]></name> <configKey>C0204</configKey> <description> <![CDATA[Used when a metaclass class method has a first argument named differently than the value specified in valid-metaclass-classmethod-first-arg option (defaultto "mcs"), recommended to easily differentiate them from regular instancemethods.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0303</key> <name><![CDATA[Trailing whitespace]]></name> <configKey>C0303</configKey> <description> <![CDATA[<p>Used when there is whitespace between the end of a line and the newline.</p> <p>Added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0304</key> <name><![CDATA[Final newline missing]]></name> <configKey>C0304</configKey> <description> <![CDATA[<p>Used when the last line in a file is missing a newline.</p> <p>Added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0325</key> <name><![CDATA[Unnecessary parentheses]]></name> <configKey>C0325</configKey> <description> <![CDATA[<p>Used when a single item in parentheses follows an if, for, or other keyword.</p> <p>This rule was added in Pylint 1.1.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0326</key> <name><![CDATA[Wrong number of spaces around an operator, bracket, or comma, or before a block opener colon]]></name> <configKey>C0326</configKey> <description> <![CDATA[ <p>Used when a wrong number of spaces is used around an operator, bracket, or comma, or before a block opener colon.</p> <p>This message belongs to the format checker.</p> <p>In PyLint 1.1.0, this message replaced the older whitespace-related messages {rule:Pylint:C0322}, {rule:Pylint:C0323}, and {rule:Pylint:C0324}, and now reports some additional situations.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C0330</key> <name><![CDATA[Bad continuation]]></name> <configKey>C0330</configKey> <description> <![CDATA[<p>Used when continued lines are badly indentend.</p> <p>This rule was added in Pylint 1.2.1.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>C1001</key> <name><![CDATA[Old-style class defined]]></name> <configKey>C1001</configKey> <description> <![CDATA[<p>Used when a class is defined that does not inherit from anotherclass and does not inherit explicitly from “object”. This message can’t be emitted when using Python >= 3.0.</p> <p>This rule was added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0108</key> <name><![CDATA[Duplicate argument name in function definition]]></name> <configKey>E0108</configKey> <description> <![CDATA[Duplicate argument names in function definitions are syntax errors. <p>This rule was added in Pylint 0.28.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0109</key> <name><![CDATA[Missing argument to reversed()]]></name> <configKey>E0109</configKey> <description> <![CDATA[Used when reversed() builtin didn't receive an argument.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0111</key> <name><![CDATA[The first reversed() argument is not a sequence]]></name> <configKey>E0111</configKey> <description> <![CDATA[Used when the first argument to reversed() builtin isn't a sequence (does not implement __reversed__, nor __getitem__ and __len__ <p>This rule was added in Pylint 1.2.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0235</key> <name><![CDATA[__exit__ must accept 3 arguments: type, value, traceback]]></name> <configKey>E0235</configKey> <description> <![CDATA[Used when the __exit__ special method, belonging to a context manager, does not accept 3 arguments (type, value, traceback). <p>This rule was added in Pylint 1.1.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0236</key> <name><![CDATA[Invalid object in __slots__, must contain only non empty strings]]></name> <configKey>E0236</configKey> <description> <![CDATA[Used when an invalid (non-string) object occurs in __slots__. <p>This rule was added in Pylint 1.2.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0238</key> <name><![CDATA[Invalid __slots__ object]]></name> <configKey>E0238</configKey> <description> <![CDATA[Used when an invalid __slots__ is found in class. Only a string, an iterable or a sequence is permitted. <p>This rule was added in Pylint 1.2.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0603</key> <name><![CDATA[Undefined variable name in __all__]]></name> <configKey>E0603</configKey> <description> <![CDATA[Used when an undefined variable name is referenced in __all__.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0604</key> <name><![CDATA[Invalid object in __all__, must contain only strings]]></name> <configKey>E0604</configKey> <description> <![CDATA[Used when an invalid (non-string) object occurs in __all__. <p>This rule was added in Pylint 0.27.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E0712</key> <name><![CDATA[Avoid catching an exception which doesn't inherit from BaseException]]></name> <configKey>E0712</configKey> <description> <![CDATA[Used when a class which doesn't inherit from BaseException is used as an exception in an except clause.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E1004</key> <name><![CDATA[Missing argument to super()]]></name> <configKey>E1004</configKey> <description> <![CDATA[Used when the super builtin didn't receive an argument. This message can't be emitted when using Python >= 3.0.]]> </description> <priority>MINOR</priority> </rule> <rule> <key>E1310</key> <name><![CDATA[Suspicious argument]]></name> <configKey>E1310</configKey> <description> <![CDATA[The argument to a str.{l,r,}strip call contains a duplicate character, <p>This rule was added in Pylint 0.28.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0110</key> <name><![CDATA[map/filter on lambda could be replaced by comprehension]]></name> <configKey>W0110</configKey> <description> <![CDATA[Used when a lambda is the first argument to "map" or "filter". It could be clearer as a list comprehension or generator expression. This message can't be emitted when using Python >= 3.0. <p>This rule was added in Pylint 0.27.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0120</key> <name><![CDATA[Else clause on loop without a break statement]]></name> <configKey>W0120</configKey> <description> <![CDATA[Loops should only have an else clause if they can exit early with a break statement, otherwise the statements under else should be on the same scope as the loop itself. <p>This rule was added in Pylint 0.28.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0121</key> <name><![CDATA[Use raise ErrorClass(args) instead of raise ErrorClass, args.]]></name> <configKey>W0121</configKey> <description> <![CDATA[Used when the alternate raise syntax 'raise foo, bar' is used instead of 'raise foo(bar)'. This message can't be emitted when using Python >= 3.0. <p>This rule was added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0123</key> <name><![CDATA[Use of eval]]></name> <configKey>W0123</configKey> <description> <![CDATA[Used when you use the "eval" function, to discourage its usage. Consider using `ast.literal_eval` for safely evaluating strings containing Python expressionsfrom untrusted sources. <p>This rule was added in Pylint 1.2.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0234</key> <name><![CDATA[__iter__ returns non-iterator]]></name> <configKey>W0234</configKey> <description> <![CDATA[Used when an __iter__ method returns something which is not an iterable (i.e. has no `next` method). <p>This rule was added in Pylint 1.1.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0512</key> <name><![CDATA[Source line cannot be decoded using the specified source file encoding]]></name> <configKey>W0512</configKey> <description> <![CDATA[Used when a source line cannot be decoded using the specified source file encoding. This message can't be emitted when using Python >= 3.0. <p>This rule was added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0623</key> <name><![CDATA[Redefining name in exception handler]]></name> <configKey>W0623</configKey> <description> <![CDATA[Used when an exception handler assigns the exception to an existing name]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0632</key> <name><![CDATA[Possible unbalanced tuple unpacking]]></name> <configKey>W0632</configKey> <description> <![CDATA[Used when there is an unbalanced tuple unpacking in assignment. <p>This rule was added in Pylint 1.1.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0633</key> <name><![CDATA[Attempting to unpack a non-sequence]]></name> <configKey>W0633</configKey> <description> <![CDATA[Used when something which is not a sequence is used in an unpack assignment. <p>This rule was added in Pylint 1.1.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0711</key> <name><![CDATA[Exception to catch is the result of a binary operation]]></name> <configKey>W0711</configKey> <description> <![CDATA[Used when the exception to catch is of the form "except A or B:". If intending to catch multiple, rewrite as "except (A, B):"]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W0712</key> <name><![CDATA[Implicit unpacking of exceptions is not supported in Python 3]]></name> <configKey>W0712</configKey> <description> <![CDATA[Python3 will not allow implicit unpacking of exceptions in except clauses. See http://www.python.org/dev/peps/pep-3110/ This message can't be emitted whenusing Python >= 3.0. <p>This rule was added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1401</key> <name><![CDATA[Anomalous backslash escape]]></name> <configKey>W1401</configKey> <description> <![CDATA[Used when a backslash is in a literal string but not as an escape. <p>This rule was added in Pylint 0.26.0.</p> <p>This rule is deprecated, use {rule:python:S1717} instead.</p>]]> </description> <priority>MINOR</priority> <status>DEPRECATED</status> </rule> <rule> <key>W1402</key> <name><![CDATA[Anomalous Unicode escape in byte string]]></name> <configKey>W1402</configKey> <description> <![CDATA[Used when an escape like u is encountered in a byte string where it has no effect. <p>This rule was added in Pylint 0.26.0.</p>]]> </description> <priority>MINOR</priority> </rule> <rule> <key>W1501</key> <name><![CDATA[Invalid mode for open]]></name> <configKey>W1501</configKey> <description> <![CDATA[Python supports: r, w, a modes with b, +, and U options. See http://docs.python.org/2/library/functions.html#open <p>This rule was added in Pylint 1.0.0.</p>]]> </description> <priority>MINOR</priority> </rule> </rules>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy