eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py

changeset 8207
d359172d11be
parent 8205
4a0f1f896341
child 8222
5994b80b8760
equal deleted inserted replaced
8206:adf11836cfce 8207:d359172d11be
16 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ 16 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__
17 except AttributeError: 17 except AttributeError:
18 ast.AsyncFunctionDef = ast.FunctionDef 18 ast.AsyncFunctionDef = ast.FunctionDef
19 19
20 20
21 class NamingStyleChecker(object): 21 class NamingStyleChecker:
22 """ 22 """
23 Class implementing a checker for naming conventions. 23 Class implementing a checker for naming conventions.
24 """ 24 """
25 LowercaseRegex = re.compile(r"[_a-z][_a-z0-9]*$") 25 LowercaseRegex = re.compile(r"[_a-z][_a-z0-9]*$")
26 UppercaseRegexp = re.compile(r"[_A-Z][_A-Z0-9]*$") 26 UppercaseRegexp = re.compile(r"[_A-Z][_A-Z0-9]*$")

eric ide

mercurial