All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.plugins.python.pylint.rules_generated.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="ASCII"?>
<rules>
<rule>
<key>C0102</key>
<name><![CDATA[Black listed name "%s"]]></name>
<configKey>C0102</configKey>
<description>
<![CDATA[Used when the name is listed in the black list (unauthorized names).]]>
</description>
</rule>
<rule>
<key>C0103</key>
<name><![CDATA[Invalid %s name "%s"%s]]></name>
<configKey>C0103</configKey>
<description>
<![CDATA[Used when the name doesn't match the regular expression associated to its type(constant, variable, class...).]]>
</description>
</rule>
<rule>
<key>C0111</key>
<name><![CDATA[Missing %s docstring]]></name>
<configKey>C0111</configKey>
<description>
<![CDATA[Used when a module, function, class or method has no docstring. Some specialmethods like __init__ doesn't necessary require a docstring.]]>
</description>
</rule>
<rule>
<key>C0112</key>
<name><![CDATA[Empty %s docstring]]></name>
<configKey>C0112</configKey>
<description>
<![CDATA[Used when a module, function, class or method has an empty docstring (it wouldbe too easy ;).]]>
</description>
</rule>
<rule>
<key>C0121</key>
<name><![CDATA[Missing required attribute "%s"]]></name>
<configKey>C0121</configKey>
<description>
<![CDATA[Used when an attribute required for modules is missing.]]>
</description>
</rule>
<rule>
<key>C0202</key>
<name><![CDATA[Class method %s should have %s as first argument]]></name>
<configKey>C0202</configKey>
<description>
<![CDATA[Used when a class method has a first argument named differently than the valuespecified in valid-classmethod-first-arg option (default to "cls"),recommended to easily differentiate them from regular instance methods.]]>
</description>
</rule>
<rule>
<key>C0203</key>
<name><![CDATA[Metaclass method %s should have %s as first argument]]></name>
<configKey>C0203</configKey>
<description>
<![CDATA[Used when a metaclass method has a first agument named differently than thevalue specified in valid-classmethod-first-arg option (default to "cls"),recommended to easily differentiate them from regular instance methods.]]>
</description>
</rule>
<rule>
<key>C0204</key>
<name><![CDATA[Metaclass class method %s should have %s as first argument]]></name>
<configKey>C0204</configKey>
<description>
<![CDATA[Used when a metaclass class method has a first argument named differently thanthe value specified in valid-metaclass-classmethod-first-arg option (defaultto "mcs"), recommended to easily differentiate them from regular instancemethods.]]>
</description>
</rule>
<rule>
<key>C0301</key>
<name><![CDATA[Line too long (%s/%s)]]></name>
<configKey>C0301</configKey>
<description>
<![CDATA[Used when a line is longer than a given number of characters.]]>
</description>
</rule>
<rule>
<key>C0302</key>
<name><![CDATA[Too many lines in module (%s)]]></name>
<configKey>C0302</configKey>
<description>
<![CDATA[Used when a module has too much lines, reducing its readability.]]>
</description>
</rule>
<rule>
<key>C0303</key>
<name><![CDATA[Trailing whitespace]]></name>
<configKey>C0303</configKey>
<description>
<![CDATA[Used when there is whitespace between the end of a line and the newline.]]>
</description>
</rule>
<rule>
<key>C0304</key>
<name><![CDATA[Final newline missing]]></name>
<configKey>C0304</configKey>
<description>
<![CDATA[Used when the last line in a file is missing a newline.]]>
</description>
</rule>
<rule>
<key>C0321</key>
<name><![CDATA[More than one statement on a single line]]></name>
<configKey>C0321</configKey>
<description>
<![CDATA[Used when more than on statement are found on the same line.]]>
</description>
</rule>
<rule>
<key>C0325</key>
<name><![CDATA[Unnecessary parens after %r keyword]]></name>
<configKey>C0325</configKey>
<description>
<![CDATA[Used when a single item in parentheses follows an if, for, or other keyword.]]>
</description>
</rule>
<rule>
<key>C0326</key>
<name><![CDATA[%s space %s %s %s]]></name>
<configKey>C0326</configKey>
<description>
<![CDATA[Used when a wrong number of spaces is used around an operator, bracket orblock opener.]]>
</description>
</rule>
<rule>
<key>C0330</key>
<name><![CDATA[Wrong %s indentation%s.]]></name>
<configKey>C0330</configKey>
<description>
<![CDATA[TODO]]>
</description>
</rule>
<rule>
<key>C1001</key>
<name><![CDATA[Old-style class defined.]]></name>
<configKey>C1001</configKey>
<description>
<![CDATA[Used when a class is defined that does not inherit from anotherclass and doesnot inherit explicitly from "object". This message can't be emitted when usingPython >= 3.0.]]>
</description>
</rule>
<rule>
<key>E0001</key>
<name><![CDATA[]]></name>
<configKey>E0001</configKey>
<description>
<![CDATA[Used when a syntax error is raised for a module.]]>
</description>
</rule>
<rule>
<key>E0011</key>
<name><![CDATA[Unrecognized file option %r]]></name>
<configKey>E0011</configKey>
<description>
<![CDATA[Used when an unknown inline option is encountered.]]>
</description>
</rule>
<rule>
<key>E0012</key>
<name><![CDATA[Bad option value %r]]></name>
<configKey>E0012</configKey>
<description>
<![CDATA[Used when a bad value for an inline option is encountered.]]>
</description>
</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 ayield in its body.]]>
</description>
</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>
</rule>
<rule>
<key>E0102</key>
<name><![CDATA[%s already defined line %s]]></name>
<configKey>E0102</configKey>
<description>
<![CDATA[Used when a function / class / method is redefined.]]>
</description>
</rule>
<rule>
<key>E0103</key>
<name><![CDATA[%r not properly in loop]]></name>
<configKey>E0103</configKey>
<description>
<![CDATA[Used when break or continue keywords are used outside a loop.]]>
</description>
</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>
</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>
</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 agenerator function or method (e.g. with some "yield" statements). This messagecan't be emitted when using Python >= 3.3.]]>
</description>
</rule>
<rule>
<key>E0107</key>
<name><![CDATA[Use of the non-existent %s operator]]></name>
<configKey>E0107</configKey>
<description>
<![CDATA[Used when you attempt to use the C-style pre-increment orpre-decrementoperator -- and ++, which doesn't exist in Python.]]>
</description>
</rule>
<rule>
<key>E0108</key>
<name><![CDATA[Duplicate argument name %s in function definition]]></name>
<configKey>E0108</configKey>
<description>
<![CDATA[Duplicate argument names in function definitions are syntax errors.]]>
</description>
</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>
</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 notimplement __reversed__, nor __getitem__ and __len__]]>
</description>
</rule>
<rule>
<key>E0202</key>
<name><![CDATA[An attribute defined in %s line %s hides this method]]></name>
<configKey>E0202</configKey>
<description>
<![CDATA[Used when a class defines a method which is hidden by an instance attributefrom an ancestor class or set by some client code.]]>
</description>
</rule>
<rule>
<key>E0203</key>
<name><![CDATA[Access to member %r before its definition line %s]]></name>
<configKey>E0203</configKey>
<description>
<![CDATA[Used when an instance member is accessed before it's actually assigned.]]>
</description>
</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 hasno argument defined.]]>
</description>
</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 youshouldn't break it!]]>
</description>
</rule>
<rule>
<key>E0221</key>
<name><![CDATA[Interface resolved to %s is not a class]]></name>
<configKey>E0221</configKey>
<description>
<![CDATA[Used when a class claims to implement an interface which is not a class.]]>
</description>
</rule>
<rule>
<key>E0222</key>
<name><![CDATA[Missing method %r from %s interface]]></name>
<configKey>E0222</configKey>
<description>
<![CDATA[Used when a method declared in an interface is missing from a classimplementing this interface]]>
</description>
</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, doesnot accept 3 arguments (type, value, traceback).]]>
</description>
</rule>
<rule>
<key>E0236</key>
<name><![CDATA[Invalid object %r in __slots__, must contain only non empty strings]]></name>
<configKey>E0236</configKey>
<description>
<![CDATA[Used when an invalid (non-string) object occurs in __slots__.]]>
</description>
</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 iterableor a sequence is permitted.]]>
</description>
</rule>
<rule>
<key>E0601</key>
<name><![CDATA[Using variable %r before assignment]]></name>
<configKey>E0601</configKey>
<description>
<![CDATA[Used when a local variable is accessed before it's assignment.]]>
</description>
</rule>
<rule>
<key>E0602</key>
<name><![CDATA[Undefined variable %r]]></name>
<configKey>E0602</configKey>
<description>
<![CDATA[Used when an undefined variable is accessed.]]>
</description>
</rule>
<rule>
<key>E0603</key>
<name><![CDATA[Undefined variable name %r in __all__]]></name>
<configKey>E0603</configKey>
<description>
<![CDATA[Used when an undefined variable name is referenced in __all__.]]>
</description>
</rule>
<rule>
<key>E0604</key>
<name><![CDATA[Invalid object %r in __all__, must contain only strings]]></name>
<configKey>E0604</configKey>
<description>
<![CDATA[Used when an invalid (non-string) object occurs in __all__.]]>
</description>
</rule>
<rule>
<key>E0611</key>
<name><![CDATA[No name %r in module %r]]></name>
<configKey>E0611</configKey>
<description>
<![CDATA[Used when a name cannot be found in a module.]]>
</description>
</rule>
<rule>
<key>E0701</key>
<name><![CDATA[Bad except clauses order (%s)]]></name>
<configKey>E0701</configKey>
<description>
<![CDATA[Used when except clauses are not in the correct order (from the more specificto the more generic). If you don't fix the order, some exceptions may not becatched by the most specific handler.]]>
</description>
</rule>
<rule>
<key>E0702</key>
<name><![CDATA[Raising %s while only classes, instances or string are allowed]]></name>
<configKey>E0702</configKey>
<description>
<![CDATA[Used when something which is neither a class, an instance or a string israised (i.e. a `TypeError` will be raised).]]>
</description>
</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 israised.]]>
</description>
</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>
</rule>
<rule>
<key>E0712</key>
<name><![CDATA[Catching an exception which doesn't inherit from BaseException: %s]]></name>
<configKey>E0712</configKey>
<description>
<![CDATA[Used when a class which doesn't inherit from BaseException is used as anexception in an except clause.]]>
</description>
</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. This message can'tbe emitted when using Python >= 3.0.]]>
</description>
</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. This message can't beemitted when using Python >= 3.0.]]>
</description>
</rule>
<rule>
<key>E1003</key>
<name><![CDATA[Bad first argument %r given to super()]]></name>
<configKey>E1003</configKey>
<description>
<![CDATA[Used when another argument than the current class is given as first argumentof the super builtin.]]>
</description>
</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 beemitted when using Python >= 3.0.]]>
</description>
</rule>
<rule>
<key>E1101</key>
<name><![CDATA[%s %r has no %r member]]></name>
<configKey>E1101</configKey>
<description>
<![CDATA[Used when a variable is accessed for an unexistent member.]]>
</description>
</rule>
<rule>
<key>E1102</key>
<name><![CDATA[%s is not callable]]></name>
<configKey>E1102</configKey>
<description>
<![CDATA[Used when an object being called has been inferred to a non callable object]]>
</description>
</rule>
<rule>
<key>E1103</key>
<name><![CDATA[%s %r has no %r member (but some types could not be inferred)]]></name>
<configKey>E1103</configKey>
<description>
<![CDATA[Used when a variable is accessed for an unexistent member, but astroid was notable to interpret all possible types of this variable.]]>
</description>
</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 functiondoesn't return anything.]]>
</description>
</rule>
<rule>
<key>E1120</key>
<name><![CDATA[No value for argument %s in %s call]]></name>
<configKey>E1120</configKey>
<description>
<![CDATA[Used when a function call passes too few arguments.]]>
</description>
</rule>
<rule>
<key>E1121</key>
<name><![CDATA[Too many positional arguments for %s call]]></name>
<configKey>E1121</configKey>
<description>
<![CDATA[Used when a function call passes too many positional arguments.]]>
</description>
</rule>
<rule>
<key>E1123</key>
<name><![CDATA[Unexpected keyword argument %r in %s call]]></name>
<configKey>E1123</configKey>
<description>
<![CDATA[Used when a function call passes a keyword argument that doesn't correspond toone of the function's parameter names.]]>
</description>
</rule>
<rule>
<key>E1124</key>
<name><![CDATA[Argument %r passed by position and keyword in %s call]]></name>
<configKey>E1124</configKey>
<description>
<![CDATA[Used when a function call would result in assigning multiple values to afunction parameter, one value from a positional argument and one from akeyword argument.]]>
</description>
</rule>
<rule>
<key>E1200</key>
<name><![CDATA[Unsupported logging format character %r (%#02x) at index %d]]></name>
<configKey>E1200</configKey>
<description>
<![CDATA[Used when an unsupported format character is used in a logging statementformat string.]]>
</description>
</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 aconversion specifier.]]>
</description>
</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>
</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>
</rule>
<rule>
<key>E1300</key>
<name><![CDATA[Unsupported format character %r (%#02x) at index %d]]></name>
<configKey>E1300</configKey>
<description>
<![CDATA[Used when a unsupported format character is used in a format string.]]>
</description>
</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>
</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 conversionspecifier contains * for the minimum field width and/or precision.]]>
</description>
</rule>
<rule>
<key>E1303</key>
<name><![CDATA[Expected mapping for format string, not %s]]></name>
<configKey>E1303</configKey>
<description>
<![CDATA[Used when a format string that uses named conversion specifiers is used withan argument that is not a mapping.]]>
</description>
</rule>
<rule>
<key>E1304</key>
<name><![CDATA[Missing key %r in format string dictionary]]></name>
<configKey>E1304</configKey>
<description>
<![CDATA[Used when a format string that uses named conversion specifiers is used with adictionary that doesn't contain all the keys required by the format string.]]>
</description>
</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 toomany arguments.]]>
</description>
</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 toofew arguments]]>
</description>
</rule>
<rule>
<key>E1310</key>
<name><![CDATA[Suspicious argument in %s.%s call]]></name>
<configKey>E1310</configKey>
<description>
<![CDATA[The argument to a str.{l,r,}strip call contains a duplicate character,]]>
</description>
</rule>
<rule>
<key>F0001</key>
<name><![CDATA[]]></name>
<configKey>F0001</configKey>
<description>
<![CDATA[Used when an error occurred preventing the analysis of a module (unable tofind it for instance).]]>
</description>
</rule>
<rule>
<key>F0002</key>
<name><![CDATA[%s: %s]]></name>
<configKey>F0002</configKey>
<description>
<![CDATA[Used when an unexpected error occurred while building the Astroidrepresentation. This is usually accompanied by a traceback. Please report sucherrors !]]>
</description>
</rule>
<rule>
<key>F0003</key>
<name><![CDATA[ignored builtin module %s]]></name>
<configKey>F0003</configKey>
<description>
<![CDATA[Used to indicate that the user asked to analyze a builtin module which hasbeen skipped.]]>
</description>
</rule>
<rule>
<key>F0010</key>
<name><![CDATA[error while code parsing: %s]]></name>
<configKey>F0010</configKey>
<description>
<![CDATA[Used when an exception occured while building the Astroid representation whichcould be handled by astroid.]]>
</description>
</rule>
<rule>
<key>F0202</key>
<name><![CDATA[Unable to check methods signature (%s / %s)]]></name>
<configKey>F0202</configKey>
<description>
<![CDATA[Used when PyLint has been unable to check methods signature compatibility foran unexpected reason. Please report this kind if you don't make sense of it.]]>
</description>
</rule>
<rule>
<key>F0220</key>
<name><![CDATA[failed to resolve interfaces implemented by %s (%s)]]></name>
<configKey>F0220</configKey>
<description>
<![CDATA[Used when a PyLint as failed to find interfaces implemented by a class]]>
</description>
</rule>
<rule>
<key>F0401</key>
<name><![CDATA[Unable to import %s]]></name>
<configKey>F0401</configKey>
<description>
<![CDATA[Used when pylint has been unable to import a module.]]>
</description>
</rule>
<rule>
<key>I0001</key>
<name><![CDATA[Unable to run raw checkers on built-in module %s]]></name>
<configKey>I0001</configKey>
<description>
<![CDATA[Used to inform that a built-in module has not been checked using the rawcheckers.]]>
</description>
</rule>
<rule>
<key>I0010</key>
<name><![CDATA[Unable to consider inline option %r]]></name>
<configKey>I0010</configKey>
<description>
<![CDATA[Used when an inline option is either badly formatted or can't be used insidemodules.]]>
</description>
</rule>
<rule>
<key>I0011</key>
<name><![CDATA[Locally disabling %s (%s)]]></name>
<configKey>I0011</configKey>
<description>
<![CDATA[Used when an inline option disables a message or a messages category.]]>
</description>
</rule>
<rule>
<key>I0012</key>
<name><![CDATA[Locally enabling %s (%s)]]></name>
<configKey>I0012</configKey>
<description>
<![CDATA[Used when an inline option enables a message or a messages category.]]>
</description>
</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>
</rule>
<rule>
<key>I0020</key>
<name><![CDATA[Suppressed %s (from line %d)]]></name>
<configKey>I0020</configKey>
<description>
<![CDATA[A message was triggered on a line, but suppressed explicitly by a disable=comment in the file. This message is not generated for messages that areignored due to configuration settings.]]>
</description>
</rule>
<rule>
<key>I0021</key>
<name><![CDATA[Useless suppression of %s]]></name>
<configKey>I0021</configKey>
<description>
<![CDATA[Reported when a message is explicitly disabled for a line or a block of code,but never triggered.]]>
</description>
</rule>
<rule>
<key>I0022</key>
<name><![CDATA[Pragma "%s" is deprecated, use "%s" instead]]></name>
<configKey>I0022</configKey>
<description>
<![CDATA[Some inline pylint options have been renamed or reworked, only the most recentform should be used. NOTE:skip-all is only available with pylint >= 0.26]]>
</description>
</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 asa function.]]>
</description>
</rule>
<rule>
<key>R0401</key>
<name><![CDATA[Cyclic import (%s)]]></name>
<configKey>R0401</configKey>
<description>
<![CDATA[Used when a cyclic import between two or more modules is detected.]]>
</description>
</rule>
<rule>
<key>R0801</key>
<name><![CDATA[Similar lines in %s files]]></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 thisduplication.]]>
</description>
</rule>
<rule>
<key>R0901</key>
<name><![CDATA[Too many ancestors (%s/%s)]]></name>
<configKey>R0901</configKey>
<description>
<![CDATA[Used when class has too many parent classes, try to reduce this to get asimpler (and so easier to use) class.]]>
</description>
</rule>
<rule>
<key>R0902</key>
<name><![CDATA[Too many instance attributes (%s/%s)]]></name>
<configKey>R0902</configKey>
<description>
<![CDATA[Used when class has too many instance attributes, try to reduce this to get asimpler (and so easier to use) class.]]>
</description>
</rule>
<rule>
<key>R0903</key>
<name><![CDATA[Too few public methods (%s/%s)]]></name>
<configKey>R0903</configKey>
<description>
<![CDATA[Used when class has too few public methods, so be sure it's really worth it.]]>
</description>
</rule>
<rule>
<key>R0904</key>
<name><![CDATA[Too many public methods (%s/%s)]]></name>
<configKey>R0904</configKey>
<description>
<![CDATA[Used when class has too many public methods, try to reduce this to get asimpler (and so easier to use) class.]]>
</description>
</rule>
<rule>
<key>R0911</key>
<name><![CDATA[Too many return statements (%s/%s)]]></name>
<configKey>R0911</configKey>
<description>
<![CDATA[Used when a function or method has too many return statement, making it hardto follow.]]>
</description>
</rule>
<rule>
<key>R0912</key>
<name><![CDATA[Too many branches (%s/%s)]]></name>
<configKey>R0912</configKey>
<description>
<![CDATA[Used when a function or method has too many branches, making it hard tofollow.]]>
</description>
</rule>
<rule>
<key>R0913</key>
<name><![CDATA[Too many arguments (%s/%s)]]></name>
<configKey>R0913</configKey>
<description>
<![CDATA[Used when a function or method takes too many arguments.]]>
</description>
</rule>
<rule>
<key>R0914</key>
<name><![CDATA[Too many local variables (%s/%s)]]></name>
<configKey>R0914</configKey>
<description>
<![CDATA[Used when a function or method has too many local variables.]]>
</description>
</rule>
<rule>
<key>R0915</key>
<name><![CDATA[Too many statements (%s/%s)]]></name>
<configKey>R0915</configKey>
<description>
<![CDATA[Used when a function or method has too many statements. You should then splitit in smaller functions / methods.]]>
</description>
</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>
</rule>
<rule>
<key>R0922</key>
<name><![CDATA[Abstract class is only referenced %s times]]></name>
<configKey>R0922</configKey>
<description>
<![CDATA[Used when an abstract class is used less than X times as ancestor.]]>
</description>
</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>
</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, whichwill never be accessed.]]>
</description>
</rule>
<rule>
<key>W0102</key>
<name><![CDATA[Dangerous default value %s as argument]]></name>
<configKey>W0102</configKey>
<description>
<![CDATA[Used when a mutable value as list or dictionary is detected in a default valuefor an argument.]]>
</description>
</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>
</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 easilydisable it if you're using those strings as documentation, instead ofcomments.]]>
</description>
</rule>
<rule>
<key>W0106</key>
<name><![CDATA[Expression "%s" 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>
</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>
</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 sameargument list as the lambda itself; such lambda expressions are in all but afew cases replaceable with the function being called in the body of thelambda.]]>
</description>
</rule>
<rule>
<key>W0109</key>
<name><![CDATA[Duplicate key %r in dictionary]]></name>
<configKey>W0109</configKey>
<description>
<![CDATA[Used when a dictionary expression binds the same key multiple times.]]>
</description>
</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 beclearer as a list comprehension or generator expression. This message can't beemitted when using Python >= 3.0.]]>
</description>
</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 breakstatement, otherwise the statements under else should be on the same scope asthe loop itself.]]>
</description>
</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.]]>
</description>
</rule>
<rule>
<key>W0122</key>
<name><![CDATA[Use of exec]]></name>
<configKey>W0122</configKey>
<description>
<![CDATA[Used when you use the "exec" statement (function for Python 3), to discourageits usage. That doesn't mean you can not use it !]]>
</description>
</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.]]>
</description>
</rule>
<rule>
<key>W0141</key>
<name><![CDATA[Used builtin function %r]]></name>
<configKey>W0141</configKey>
<description>
<![CDATA[Used when a black listed builtin function is used (see the bad-functionoption). Usual black listed functions are the ones like map, or filter , wherePython offers now some cleaner alternative like list comprehension.]]>
</description>
</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` todispatch arguments. This doesn't improve readability and should be used withcare.]]>
</description>
</rule>
<rule>
<key>W0150</key>
<name><![CDATA[%s 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 ofa try...finally block: the exceptions raised in the try clause will besilently swallowed instead of being re-raised.]]>
</description>
</rule>
<rule>
<key>W0199</key>
<name><![CDATA[Assert called on a 2-uple. Did you mean 'assert x,y'?]]></name>
<configKey>W0199</configKey>
<description>
<![CDATA[A call of assert on a tuple will always evaluate to true if the tuple is notempty, and will always evaluate to false if it is.]]>
</description>
</rule>
<rule>
<key>W0201</key>
<name><![CDATA[Attribute %r defined outside __init__]]></name>
<configKey>W0201</configKey>
<description>
<![CDATA[Used when an instance attribute is defined outside the __init__ method.]]>
</description>
</rule>
<rule>
<key>W0211</key>
<name><![CDATA[Static method with %r as first argument]]></name>
<configKey>W0211</configKey>
<description>
<![CDATA[Used when a static method has "self" or a value specified invalid-classmethod-first-arg option or valid-metaclass-classmethod-first-argoption as first argument.]]>
</description>
</rule>
<rule>
<key>W0212</key>
<name><![CDATA[Access to a protected member %s of a client class]]></name>
<configKey>W0212</configKey>
<description>
<![CDATA[Used when a protected member (i.e. class member with a name beginning with anunderscore) is access outside the class or a descendant of the class whereit's defined.]]>
</description>
</rule>
<rule>
<key>W0221</key>
<name><![CDATA[Arguments number differs from %s method]]></name>
<configKey>W0221</configKey>
<description>
<![CDATA[Used when a method has a different number of arguments than in the implementedinterface or in an overridden method.]]>
</description>
</rule>
<rule>
<key>W0222</key>
<name><![CDATA[Signature differs from %s method]]></name>
<configKey>W0222</configKey>
<description>
<![CDATA[Used when a method signature is different than in the implemented interface orin an overridden method.]]>
</description>
</rule>
<rule>
<key>W0223</key>
<name><![CDATA[Method %r is abstract in class %r but is not overridden]]></name>
<configKey>W0223</configKey>
<description>
<![CDATA[Used when an abstract method (i.e. raise NotImplementedError) is notoverridden in concrete class.]]>
</description>
</rule>
<rule>
<key>W0231</key>
<name><![CDATA[__init__ method from base class %r is not called]]></name>
<configKey>W0231</configKey>
<description>
<![CDATA[Used when an ancestor class method has an __init__ method which is not calledby a derived class.]]>
</description>
</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>
</rule>
<rule>
<key>W0233</key>
<name><![CDATA[__init__ method from a non direct base class %r is called]]></name>
<configKey>W0233</configKey>
<description>
<![CDATA[Used when an __init__ method is called on a class which is not in the directancestors for the analysed class.]]>
</description>
</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)]]>
</description>
</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>
</rule>
<rule>
<key>W0311</key>
<name><![CDATA[Bad indentation. Found %s %s, expected %s]]></name>
<configKey>W0311</configKey>
<description>
<![CDATA[Used when an unexpected number of indentation's tabulations or spaces has beenfound.]]>
</description>
</rule>
<rule>
<key>W0312</key>
<name><![CDATA[Found indentation with %ss instead of %ss]]></name>
<configKey>W0312</configKey>
<description>
<![CDATA[Used when there are some mixed tabs and spaces in a module.]]>
</description>
</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>
</rule>
<rule>
<key>W0332</key>
<name><![CDATA[Use of "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 aupper case "L" since the letter "l" looks too much like the digit "1"]]>
</description>
</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>
</rule>
<rule>
<key>W0401</key>
<name><![CDATA[Wildcard import %s]]></name>
<configKey>W0401</configKey>
<description>
<![CDATA[Used when `from module import *` is detected.]]>
</description>
</rule>
<rule>
<key>W0402</key>
<name><![CDATA[Uses of a deprecated module %r]]></name>
<configKey>W0402</configKey>
<description>
<![CDATA[Used a module marked as deprecated is imported.]]>
</description>
</rule>
<rule>
<key>W0403</key>
<name><![CDATA[Relative import %r, should be %r]]></name>
<configKey>W0403</configKey>
<description>
<![CDATA[Used when an import relative to the package directory is detected.]]>
</description>
</rule>
<rule>
<key>W0404</key>
<name><![CDATA[Reimport %r (imported line %s)]]></name>
<configKey>W0404</configKey>
<description>
<![CDATA[Used when a module is reimported multiple times.]]>
</description>
</rule>
<rule>
<key>W0406</key>
<name><![CDATA[Module import itself]]></name>
<configKey>W0406</configKey>
<description>
<![CDATA[Used when a module is importing itself.]]>
</description>
</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 docstringstatement in the module. This message can't be emitted when using Python >=3.0.]]>
</description>
</rule>
<rule>
<key>W0511</key>
<name><![CDATA[]]></name>
<configKey>W0511</configKey>
<description>
<![CDATA[Used when a warning note as FIXME or XXX is detected.]]>
</description>
</rule>
<rule>
<key>W0512</key>
<name><![CDATA[Cannot decode using encoding "%s", unexpected byte at position %d]]></name>
<configKey>W0512</configKey>
<description>
<![CDATA[Used when a source line cannot be decoded using the specified source fileencoding. This message can't be emitted when using Python >= 3.0.]]>
</description>
</rule>
<rule>
<key>W0601</key>
<name><![CDATA[Global variable %r undefined at the module level]]></name>
<configKey>W0601</configKey>
<description>
<![CDATA[Used when a variable is defined through the "global" statement but thevariable is not defined in the module scope.]]>
</description>
</rule>
<rule>
<key>W0602</key>
<name><![CDATA[Using global for %r but no assignment is done]]></name>
<configKey>W0602</configKey>
<description>
<![CDATA[Used when a variable is defined through the "global" statement but noassignment to this variable is done.]]>
</description>
</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. PyLintjust try to discourage this usage. That doesn't mean you can not use it !]]>
</description>
</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 noeffect]]>
</description>
</rule>
<rule>
<key>W0611</key>
<name><![CDATA[Unused import %s]]></name>
<configKey>W0611</configKey>
<description>
<![CDATA[Used when an imported module or variable is not used.]]>
</description>
</rule>
<rule>
<key>W0612</key>
<name><![CDATA[Unused variable %r]]></name>
<configKey>W0612</configKey>
<description>
<![CDATA[Used when a variable is defined but not used.]]>
</description>
</rule>
<rule>
<key>W0613</key>
<name><![CDATA[Unused argument %r]]></name>
<configKey>W0613</configKey>
<description>
<![CDATA[Used when a function or method argument is not used.]]>
</description>
</rule>
<rule>
<key>W0614</key>
<name><![CDATA[Unused import %s 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>
</rule>
<rule>
<key>W0621</key>
<name><![CDATA[Redefining name %r from outer scope (line %s)]]></name>
<configKey>W0621</configKey>
<description>
<![CDATA[Used when a variable's name hide a name defined in the outer scope.]]>
</description>
</rule>
<rule>
<key>W0622</key>
<name><![CDATA[Redefining built-in %r]]></name>
<configKey>W0622</configKey>
<description>
<![CDATA[Used when a variable or function override a built-in.]]>
</description>
</rule>
<rule>
<key>W0623</key>
<name><![CDATA[Redefining name %r from %s in exception handler]]></name>
<configKey>W0623</configKey>
<description>
<![CDATA[Used when an exception handler assigns the exception to an existing name]]>
</description>
</rule>
<rule>
<key>W0631</key>
<name><![CDATA[Using possibly undefined loop variable %r]]></name>
<configKey>W0631</configKey>
<description>
<![CDATA[Used when an loop variable (i.e. defined by a for loop or a list comprehensionor a generator expression) is used outside the loop.]]>
</description>
</rule>
<rule>
<key>W0632</key>
<name><![CDATA[Possible unbalanced tuple unpacking with sequence%s: left side has %d label(s), right side has %d value(s)]]></name>
<configKey>W0632</configKey>
<description>
<![CDATA[Used when there is an unbalanced tuple unpacking in assignment]]>
</description>
</rule>
<rule>
<key>W0633</key>
<name><![CDATA[Attempting to unpack a non-sequence%s]]></name>
<configKey>W0633</configKey>
<description>
<![CDATA[Used when something which is not a sequence is used in an unpack assignment]]>
</description>
</rule>
<rule>
<key>W0640</key>
<name><![CDATA[Cell variable %s defined in loop]]></name>
<configKey>W0640</configKey>
<description>
<![CDATA[A variable used in a closure is defined in a loop. This will result in allclosures using the same value for the closed-over variable.]]>
</description>
</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>
</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>
</rule>
<rule>
<key>W0703</key>
<name><![CDATA[Catching too general exception %s]]></name>
<configKey>W0703</configKey>
<description>
<![CDATA[Used when an except catches a too general exception, possibly buryingunrelated errors.]]>
</description>
</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>
</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 thebuiltin "Exception" class. This message can't be emitted when using Python >=3.0.]]>
</description>
</rule>
<rule>
<key>W0711</key>
<name><![CDATA[Exception to catch is the result of a binary "%s" operation]]></name>
<configKey>W0711</configKey>
<description>
<![CDATA[Used when the exception to catch is of the form "except A or B:". If intendingto catch multiple, rewrite as "except (A, B):"]]>
</description>
</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. Seehttp://www.python.org/dev/peps/pep-3110/ This message can't be emitted whenusing Python >= 3.0.]]>
</description>
</rule>
<rule>
<key>W0713</key>
<name><![CDATA[Indexing exceptions will not work on Python 3]]></name>
<configKey>W0713</configKey>
<description>
<![CDATA[Indexing exceptions will not work on Python 3. Use `exception.args[index]`instead. This message can't be emitted when using Python >= 3.0.]]>
</description>
</rule>
<rule>
<key>W1001</key>
<name><![CDATA[Use of "property" on an old style class]]></name>
<configKey>W1001</configKey>
<description>
<![CDATA[Used when PyLint detect the use of the builtin "property" on an old styleclass while this is relying on new style classes features. This message can'tbe emitted when using Python >= 3.0.]]>
</description>
</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 functionreturns nothing but None.]]>
</description>
</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 stringinterpolation to the logging method itself and be written "logging.<loggingmethod>(format_string, format_args...)" so that the program may avoidincurring the cost of the interpolation in those cases in which no messagewill be logged. For more, see http://www.python.org/dev/peps/pep-0282/.]]>
</description>
</rule>
<rule>
<key>W1300</key>
<name><![CDATA[Format string dictionary key should be a string, not %s]]></name>
<configKey>W1300</configKey>
<description>
<![CDATA[Used when a format string that uses named conversion specifiers is used with adictionary whose keys are not all strings.]]>
</description>
</rule>
<rule>
<key>W1301</key>
<name><![CDATA[Unused key %r 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 conWtains keys not required by the format string.]]>
</description>
</rule>
<rule>
<key>W1401</key>
<name><![CDATA[Anomalous backslash in string: '%s'. String constant might be missing an r prefix.]]></name>
<configKey>W1401</configKey>
<description>
<![CDATA[Used when a backslash is in a literal string but not as an escape.]]>
</description>
</rule>
<rule>
<key>W1402</key>
<name><![CDATA[Anomalous Unicode escape in byte string: '%s'. String constant might be missing an r or u prefix.]]></name>
<configKey>W1402</configKey>
<description>
<![CDATA[Used when an escape like \u is encountered in a byte string where it has noeffect.]]>
</description>
</rule>
<rule>
<key>W1501</key>
<name><![CDATA["%s" is not a valid mode for open.]]></name>
<configKey>W1501</configKey>
<description>
<![CDATA[Python supports: r, w, a modes with b, +, and U options. Seehttp://docs.python.org/2/library/functions.html#open]]>
</description>
</rule>
</rules>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy