Plugins/CheckerPlugins/CodeStyleChecker/NamingStyleChecker.py

changeset 5147
d39dd5cee0c8
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
5146:f96c32abd120 5147:d39dd5cee0c8
33 "N811", "N812", "N813", "N814", "N821", "N831" 33 "N811", "N812", "N813", "N814", "N821", "N831"
34 ] 34 ]
35 35
36 def __init__(self, tree, filename, options): 36 def __init__(self, tree, filename, options):
37 """ 37 """
38 Constructor (according to 'extended' pep8.py API) 38 Constructor (according to 'extended' pycodestyle.py API)
39 39
40 @param tree AST tree of the source file 40 @param tree AST tree of the source file
41 @param filename name of the source file (string) 41 @param filename name of the source file (string)
42 @param options options as parsed by pep8.StyleGuide 42 @param options options as parsed by pycodestyle.StyleGuide
43 """ 43 """
44 self.__parents = collections.deque() 44 self.__parents = collections.deque()
45 self.__tree = tree 45 self.__tree = tree
46 self.__filename = filename 46 self.__filename = filename
47 47
77 self.__checkers[key] = [] 77 self.__checkers[key] = []
78 self.__checkers[key].append(checker) 78 self.__checkers[key].append(checker)
79 79
80 def run(self): 80 def run(self):
81 """ 81 """
82 Public method run by the pep8.py checker. 82 Public method run by the pycodestyle.py checker.
83 83
84 @return tuple giving line number, offset within line, code and 84 @return tuple giving line number, offset within line, code and
85 checker function 85 checker function
86 """ 86 """
87 if self.__tree and self.__checkers: 87 if self.__tree and self.__checkers:

eric ide

mercurial