src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
137 @param code message code to check for 137 @param code message code to check for
138 @type str 138 @type str
139 @return flag indicating to ignore the given code 139 @return flag indicating to ignore the given code
140 @rtype bool 140 @rtype bool
141 """ 141 """
142 return ( 142 return code in self.__ignore or (
143 code in self.__ignore 143 code.startswith(self.__ignore) and not code.startswith(self.__select)
144 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
145 ) 144 )
146 145
147 def __error(self, node, code): 146 def __error(self, node, code):
148 """ 147 """
149 Private method to build the error information. 148 Private method to build the error information.

eric ide

mercurial