src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
133 @param code message code to check for 133 @param code message code to check for
134 @type str 134 @type str
135 @return flag indicating to ignore the given code 135 @return flag indicating to ignore the given code
136 @rtype bool 136 @rtype bool
137 """ 137 """
138 return ( 138 return code in self.__ignore or (
139 code in self.__ignore 139 code.startswith(self.__ignore) and not code.startswith(self.__select)
140 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
141 ) 140 )
142 141
143 def __error(self, lineNumber, offset, code, *args): 142 def __error(self, lineNumber, offset, code, *args):
144 """ 143 """
145 Private method to record an issue. 144 Private method to record an issue.

eric ide

mercurial