src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportsChecker.py

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

eric ide

mercurial