--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py Sun Apr 11 18:45:10 2021 +0200 @@ -342,15 +342,21 @@ yield self.__error(node, "N804") return - if functionType == "method": - if argNames[0] != "self": - yield self.__error(node, "N805") - elif functionType == "classmethod": - if argNames[0] != "cls": - yield self.__error(node, "N804") - elif functionType == "staticmethod": - if argNames[0] in ("cls", "self"): - yield self.__error(node, "N806") + if ( + functionType == "method" and + argNames[0] != "self" + ): + yield self.__error(node, "N805") + elif ( + functionType == "classmethod" and + argNames[0] != "cls" + ): + yield self.__error(node, "N804") + elif ( + functionType == "staticmethod" and + argNames[0] in ("cls", "self") + ): + yield self.__error(node, "N806") for arg in argNames: if not self.LowercaseRegex.match(arg): yield self.__error(node, "N803")