src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/translations.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9271
f655c20ff500
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
11 11
12 from PyQt6.QtCore import QCoreApplication 12 from PyQt6.QtCore import QCoreApplication
13 13
14 _namingStyleMessages = { 14 _namingStyleMessages = {
15 "N801": QCoreApplication.translate( 15 "N801": QCoreApplication.translate(
16 "NamingStyleChecker", 16 "NamingStyleChecker", "class names should use CapWords convention"
17 "class names should use CapWords convention"), 17 ),
18 "N802": QCoreApplication.translate( 18 "N802": QCoreApplication.translate(
19 "NamingStyleChecker", 19 "NamingStyleChecker", "function name should be lowercase"
20 "function name should be lowercase"), 20 ),
21 "N803": QCoreApplication.translate( 21 "N803": QCoreApplication.translate(
22 "NamingStyleChecker", 22 "NamingStyleChecker", "argument name should be lowercase"
23 "argument name should be lowercase"), 23 ),
24 "N804": QCoreApplication.translate( 24 "N804": QCoreApplication.translate(
25 "NamingStyleChecker", 25 "NamingStyleChecker", "first argument of a class method should be named 'cls'"
26 "first argument of a class method should be named 'cls'"), 26 ),
27 "N805": QCoreApplication.translate( 27 "N805": QCoreApplication.translate(
28 "NamingStyleChecker", 28 "NamingStyleChecker", "first argument of a method should be named 'self'"
29 "first argument of a method should be named 'self'"), 29 ),
30 "N806": QCoreApplication.translate( 30 "N806": QCoreApplication.translate(
31 "NamingStyleChecker", 31 "NamingStyleChecker",
32 "first argument of a static method should not be named" 32 "first argument of a static method should not be named" " 'self' or 'cls",
33 " 'self' or 'cls"), 33 ),
34 "N807": QCoreApplication.translate( 34 "N807": QCoreApplication.translate(
35 "NamingStyleChecker", 35 "NamingStyleChecker", "module names should be lowercase"
36 "module names should be lowercase"), 36 ),
37 "N808": QCoreApplication.translate( 37 "N808": QCoreApplication.translate(
38 "NamingStyleChecker", 38 "NamingStyleChecker", "package names should be lowercase"
39 "package names should be lowercase"), 39 ),
40 "N811": QCoreApplication.translate( 40 "N811": QCoreApplication.translate(
41 "NamingStyleChecker", 41 "NamingStyleChecker", "constant imported as non constant"
42 "constant imported as non constant"), 42 ),
43 "N812": QCoreApplication.translate( 43 "N812": QCoreApplication.translate(
44 "NamingStyleChecker", 44 "NamingStyleChecker", "lowercase imported as non lowercase"
45 "lowercase imported as non lowercase"), 45 ),
46 "N813": QCoreApplication.translate( 46 "N813": QCoreApplication.translate(
47 "NamingStyleChecker", 47 "NamingStyleChecker", "camelcase imported as lowercase"
48 "camelcase imported as lowercase"), 48 ),
49 "N814": QCoreApplication.translate( 49 "N814": QCoreApplication.translate(
50 "NamingStyleChecker", 50 "NamingStyleChecker", "camelcase imported as constant"
51 "camelcase imported as constant"), 51 ),
52 "N821": QCoreApplication.translate( 52 "N821": QCoreApplication.translate(
53 "NamingStyleChecker", 53 "NamingStyleChecker", "variable in function should be lowercase"
54 "variable in function should be lowercase"), 54 ),
55 "N831": QCoreApplication.translate( 55 "N831": QCoreApplication.translate(
56 "NamingStyleChecker", 56 "NamingStyleChecker", "names 'l', 'O' and 'I' should be avoided"
57 "names 'l', 'O' and 'I' should be avoided"), 57 ),
58 } 58 }

eric ide

mercurial