Module implementing a checker for naming conventions.
None |
NamingStyleChecker | Class implementing a checker for naming conventions. |
None |
Class implementing a checker for naming conventions.
Codes |
None |
NamingStyleChecker | Constructor (according to 'extended' pycodestyle.py API) |
__checkClassName | Private class to check the given node for class name conventions (N801, N818). |
__checkFunctionArgumentNames | |
__checkFunctionName | |
__checkImportAs | |
__checkModule | |
__checkNameToBeAvoided | |
__checkVariableNames | Private method to check variable names in function, class and global scope (N821, N822, N823). |
__classVariableCheck | Private method to determine the error code for a variable in class scope. |
__error | Private method to build the error information. |
__extractNames | Private method to extract the names from the target node. |
__findGlobalDefs | Private method amend a node with global definitions information. |
__findVariableNameErrors | Private method to check, if there is a variable name error. |
__functionVariableCheck | Private method to determine the error code for a variable in class scope. |
__getArgNames | Private method to get the argument names of a function node. |
__getClassdef | Private method to extract the class definition. |
__globalVariableCheck | Private method to determine the error code for a variable in global scope. |
__isMixedCase | Private method to check, if the given name is mixed case. |
__isNameToBeAvoided | Private method to check, if the given name should be avoided. |
__isNamedTupel | Private method to check, if a node is a named tuple. |
__superClassNames | Private method to extract the names of all super classes. |
__tagClassFunctions | Private method to tag functions if they are methods, class methods or static methods. |
__visitNode | Private method to inspect the given AST node. |
__visitTree | Private method to scan the given AST tree. |
run | Public method run by the pycodestyle.py checker. |
None |
Constructor (according to 'extended' pycodestyle.py API)
Private class to check the given node for class name conventions (N801, N818).
Almost without exception, class names use the CapWords convention. Classes for internal use have a leading underscore in addition.
Private method to check variable names in function, class and global scope (N821, N822, N823).
Local variables in functions should be lowercase.
Private method to determine the error code for a variable in class scope.
Private method to build the error information.
Private method to extract the names from the target node.
Private method amend a node with global definitions information.
Private method to check, if there is a variable name error.
Private method to determine the error code for a variable in class scope.
Private method to get the argument names of a function node.
Private method to extract the class definition.
Private method to determine the error code for a variable in global scope.
Private method to check, if the given name is mixed case.
Private method to check, if the given name should be avoided.
Private method to check, if a node is a named tuple.
Private method to extract the names of all super classes.
Private method to tag functions if they are methods, class methods or static methods.
Private method to inspect the given AST node.
Private method to scan the given AST tree.
Public method run by the pycodestyle.py checker.