--- a/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py Sat Feb 03 16:15:24 2018 +0100 +++ b/Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py Sat Feb 03 16:46:32 2018 +0100 @@ -222,7 +222,7 @@ @return tuple containing the line number and the coding @rtype tuple of int and str """ - for lineno, line in enumerate(self.__source[:2]): + for lineno, line in enumerate(self.__source[:5]): matched = re.search('coding[:=]\s*([-\w_.]+)', line, re.IGNORECASE) if matched: return lineno, matched.group(1) @@ -234,7 +234,6 @@ Private method to check the presence of a coding line and valid encodings. """ - # TODO: editorconfig: check coding line against EditorConfig setting if len(self.__source) == 0: return