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

changeset 7784
3257703e10c5
child 7923
91e843545d9a
equal deleted inserted replaced
7783:36f66ce496bd 7784:3257703e10c5
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2020 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6
7 """
8 Module implementing message translations for the code style plugin messages
9 (miscellaneous part).
10 """
11
12 from PyQt5.QtCore import QCoreApplication
13
14 _namingStyleMessages = {
15 "N801": QCoreApplication.translate(
16 "NamingStyleChecker",
17 "class names should use CapWords convention"),
18 "N802": QCoreApplication.translate(
19 "NamingStyleChecker",
20 "function name should be lowercase"),
21 "N803": QCoreApplication.translate(
22 "NamingStyleChecker",
23 "argument name should be lowercase"),
24 "N804": QCoreApplication.translate(
25 "NamingStyleChecker",
26 "first argument of a class method should be named 'cls'"),
27 "N805": QCoreApplication.translate(
28 "NamingStyleChecker",
29 "first argument of a method should be named 'self'"),
30 "N806": QCoreApplication.translate(
31 "NamingStyleChecker",
32 "first argument of a static method should not be named"
33 " 'self' or 'cls"),
34 "N807": QCoreApplication.translate(
35 "NamingStyleChecker",
36 "module names should be lowercase"),
37 "N808": QCoreApplication.translate(
38 "NamingStyleChecker",
39 "package names should be lowercase"),
40 "N811": QCoreApplication.translate(
41 "NamingStyleChecker",
42 "constant imported as non constant"),
43 "N812": QCoreApplication.translate(
44 "NamingStyleChecker",
45 "lowercase imported as non lowercase"),
46 "N813": QCoreApplication.translate(
47 "NamingStyleChecker",
48 "camelcase imported as lowercase"),
49 "N814": QCoreApplication.translate(
50 "NamingStyleChecker",
51 "camelcase imported as constant"),
52 "N821": QCoreApplication.translate(
53 "NamingStyleChecker",
54 "variable in function should be lowercase"),
55 "N831": QCoreApplication.translate(
56 "NamingStyleChecker",
57 "names 'l', 'O' and 'I' should be avoided"),
58 }

eric ide

mercurial