src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/LoggingChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
105 @param code message code to check for 105 @param code message code to check for
106 @type str 106 @type str
107 @return flag indicating to ignore the given code 107 @return flag indicating to ignore the given code
108 @rtype bool 108 @rtype bool
109 """ 109 """
110 return ( 110 return code in self.__ignore or (
111 code in self.__ignore 111 code.startswith(self.__ignore) and not code.startswith(self.__select)
112 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
113 ) 112 )
114 113
115 def __error(self, lineNumber, offset, code, *args): 114 def __error(self, lineNumber, offset, code, *args):
116 """ 115 """
117 Private method to record an issue. 116 Private method to record an issue.

eric ide

mercurial