Plugins/CheckerPlugins/Pep8/Pep8Checker.py

changeset 2917
fe82710d02cb
parent 2896
9fa71ee50b3d
child 2929
28ab0bc63d69
equal deleted inserted replaced
2916:a8628dfdfe04 2917:fe82710d02cb
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 17
17 import Preferences 18 import Preferences
18 import Utilities 19 import Utilities
19 20
20 from eric5config import getConfig 21 from eric5config import getConfig
104 argindex += 1 105 argindex += 1
105 index += 6 + arglen 106 index += 6 + arglen
106 107
107 if code in Pep8NamingChecker.Codes: 108 if code in Pep8NamingChecker.Codes:
108 text = Pep8NamingChecker.getMessage(code, *args) 109 text = Pep8NamingChecker.getMessage(code, *args)
110 elif code in Pep257Checker.Codes:
111 text = Pep257Checker.getMessage(code, *args)
109 else: 112 else:
110 text = pep8.getMessage(code, *args) 113 text = pep8.getMessage(code, *args)
111 self.errors.append((fname, lineno, position, text)) 114 self.errors.append((fname, lineno, position, text))
112 while index < len(output): 115 while index < len(output):
113 code, countStr = output[index].split(None, 1) 116 code, countStr = output[index].split(None, 1)

eric ide

mercurial