src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Unused/UnusedChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
80 @param code message code to check for 80 @param code message code to check for
81 @type str 81 @type str
82 @return flag indicating to ignore the given code 82 @return flag indicating to ignore the given code
83 @rtype bool 83 @rtype bool
84 """ 84 """
85 return ( 85 return code in self.__ignore or (
86 code in self.__ignore 86 code.startswith(self.__ignore) and not code.startswith(self.__select)
87 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
88 ) 87 )
89 88
90 def __error(self, lineNumber, offset, code, *args): 89 def __error(self, lineNumber, offset, code, *args):
91 """ 90 """
92 Private method to record an issue. 91 Private method to record an issue.

eric ide

mercurial