Plugins/CheckerPlugins/CodeStyleChecker/MiscellaneousChecker.py

changeset 6106
921d070cec82
parent 6100
63d6350f3a34
child 6177
af76e795c4ce
--- 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
         

eric ide

mercurial