Plugins/CheckerPlugins/Pep8/Pep8Checker.py

changeset 2971
efd4a4343019
parent 2929
28ab0bc63d69
equal deleted inserted replaced
2969:0e1af1313b8b 2971:efd4a4343019
11 11
12 from PyQt4.QtCore import QProcess, QCoreApplication 12 from PyQt4.QtCore import QProcess, QCoreApplication
13 13
14 from . import pep8 14 from . import pep8
15 from .Pep8NamingChecker import Pep8NamingChecker 15 from .Pep8NamingChecker import Pep8NamingChecker
16 from .Pep257Checker import Pep257Checker 16 from .DocStyleChecker import DocStyleChecker
17 17
18 import Preferences 18 import Preferences
19 import Utilities 19 import Utilities
20 20
21 from eric5config import getConfig 21 from eric5config import getConfig
111 argindex += 1 111 argindex += 1
112 index += 6 + arglen 112 index += 6 + arglen
113 113
114 if code in Pep8NamingChecker.Codes: 114 if code in Pep8NamingChecker.Codes:
115 text = Pep8NamingChecker.getMessage(code, *args) 115 text = Pep8NamingChecker.getMessage(code, *args)
116 elif code in Pep257Checker.Codes: 116 elif code in DocStyleChecker.Codes:
117 text = Pep257Checker.getMessage(code, *args) 117 text = DocStyleChecker.getMessage(code, *args)
118 else: 118 else:
119 text = pep8.getMessage(code, *args) 119 text = pep8.getMessage(code, *args)
120 self.errors.append((fname, lineno, position, text)) 120 self.errors.append((fname, lineno, position, text))
121 while index < len(output): 121 while index < len(output):
122 code, countStr = output[index].split(None, 1) 122 code, countStr = output[index].split(None, 1)

eric ide

mercurial