--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityContext.py Mon Oct 21 16:21:24 2024 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityContext.py Mon Oct 21 19:31:11 2024 +0200 @@ -235,7 +235,7 @@ elif isinstance(literal, ast.Tuple): returnTuple = () for ti in literal.elts: - returnTuple = returnTuple + (self.__getLiteralValue(ti),) + returnTuple += (self.__getLiteralValue(ti),) literalValue = returnTuple elif isinstance(literal, ast.Set): @@ -321,7 +321,7 @@ """ Public method to get the offset for a specific named argument. - @param argumentName name of the argument to get the line number for + @param argumentName name of the argument to get the column offset for @type str @return offset of the found argument or -1 @rtype int @@ -388,3 +388,23 @@ return any(module in imp for imp in self.__context["imports"]) except KeyError: return False + + @property + def filename(self): + """ + Public method to get the file name. + + @return file name + @rtype str + """ + return self.__context.get("filename") + + @property + def fileData(self): + """ + Public method to get the file contents. + + @return file contents + @rtype str + """ + return self.__context.get("filedata")