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

branch
eric7
changeset 10884
2be906d60ffb
parent 10639
757bfe32983f
child 10907
c424150d2ac8
equal deleted inserted replaced
10883:1fe731ca7078 10884:2be906d60ffb
129 "M199": QCoreApplication.translate( 129 "M199": QCoreApplication.translate(
130 "MiscellaneousChecker", 130 "MiscellaneousChecker",
131 "unnecessary list comprehension passed to {0}() prevents short-circuiting" 131 "unnecessary list comprehension passed to {0}() prevents short-circuiting"
132 " - rewrite as a generator", 132 " - rewrite as a generator",
133 ), 133 ),
134 "M200": QCoreApplication.translate(
135 "MiscellaneousChecker",
136 "unnecessary {0} comprehension - rewrite using dict.fromkeys()"
137 ),
134 ## Dictionaries with sorted keys 138 ## Dictionaries with sorted keys
135 "M201": QCoreApplication.translate( 139 "M251": QCoreApplication.translate(
136 "MiscellaneousChecker", 140 "MiscellaneousChecker",
137 "sort keys - '{0}' should be before '{1}'", 141 "sort keys - '{0}' should be before '{1}'",
138 ), 142 ),
139 ## Property 143 ## Property
140 "M210": QCoreApplication.translate( 144 "M260": QCoreApplication.translate(
141 "MiscellaneousChecker", 145 "MiscellaneousChecker",
142 "the number of arguments for property getter method is wrong" 146 "the number of arguments for property getter method is wrong"
143 " (should be 1 instead of {0})", 147 " (should be 1 instead of {0})",
144 ), 148 ),
145 "M211": QCoreApplication.translate( 149 "M261": QCoreApplication.translate(
146 "MiscellaneousChecker", 150 "MiscellaneousChecker",
147 "the number of arguments for property setter method is wrong" 151 "the number of arguments for property setter method is wrong"
148 " (should be 2 instead of {0})", 152 " (should be 2 instead of {0})",
149 ), 153 ),
150 "M212": QCoreApplication.translate( 154 "M262": QCoreApplication.translate(
151 "MiscellaneousChecker", 155 "MiscellaneousChecker",
152 "the number of arguments for property deleter method is wrong" 156 "the number of arguments for property deleter method is wrong"
153 " (should be 1 instead of {0})", 157 " (should be 1 instead of {0})",
154 ), 158 ),
155 "M213": QCoreApplication.translate( 159 "M263": QCoreApplication.translate(
156 "MiscellaneousChecker", 160 "MiscellaneousChecker",
157 "the name of the setter method is wrong (should be '{0}' instead of '{1}')", 161 "the name of the setter method is wrong (should be '{0}' instead of '{1}')",
158 ), 162 ),
159 "M214": QCoreApplication.translate( 163 "M264": QCoreApplication.translate(
160 "MiscellaneousChecker", 164 "MiscellaneousChecker",
161 "the name of the deleter method is wrong (should be '{0}' instead of '{1}')", 165 "the name of the deleter method is wrong (should be '{0}' instead of '{1}')",
162 ), 166 ),
163 "M215": QCoreApplication.translate( 167 "M265": QCoreApplication.translate(
164 "MiscellaneousChecker", 168 "MiscellaneousChecker",
165 "the name of the setter decorator is wrong (should be '{0}' instead of '{1}')", 169 "the name of the setter decorator is wrong (should be '{0}' instead of '{1}')",
166 ), 170 ),
167 "M216": QCoreApplication.translate( 171 "M266": QCoreApplication.translate(
168 "MiscellaneousChecker", 172 "MiscellaneousChecker",
169 "the name of the deleter decorator is wrong (should be '{0}' instead of '{1}')", 173 "the name of the deleter decorator is wrong (should be '{0}' instead of '{1}')",
170 ), 174 ),
171 "M217": QCoreApplication.translate( 175 "M267": QCoreApplication.translate(
172 "MiscellaneousChecker", 176 "MiscellaneousChecker",
173 "multiple decorators were used to declare property '{0}'", 177 "multiple decorators were used to declare property '{0}'",
174 ), 178 ),
175 ## Naive datetime usage 179 ## Naive datetime usage
176 "M301": QCoreApplication.translate( 180 "M301": QCoreApplication.translate(
627 "M195": ["sorted"], 631 "M195": ["sorted"],
628 "M196": ["list"], 632 "M196": ["list"],
629 "M197": ["list"], 633 "M197": ["list"],
630 "M198": ["dict comprehension"], 634 "M198": ["dict comprehension"],
631 "M199": ["any"], 635 "M199": ["any"],
636 "M200": ["dict"],
632 ## Dictionaries with sorted keys 637 ## Dictionaries with sorted keys
633 "M201": ["bar", "foo"], 638 "M251": ["bar", "foo"],
634 ## Property 639 ## Property
635 "M210": [2], 640 "M260": [2],
636 "M211": [1], 641 "M261": [1],
637 "M212": [2], 642 "M262": [2],
638 "M213": ["foo", "bar"], 643 "M263": ["foo", "bar"],
639 "M214": ["foo", "bar"], 644 "M264": ["foo", "bar"],
640 "M215": ["foo", "bar"], 645 "M265": ["foo", "bar"],
641 "M216": ["foo", "bar"], 646 "M266": ["foo", "bar"],
642 "M217": ["foo"], 647 "M267": ["foo"],
643 ## Bugbear 648 ## Bugbear
644 "M507": ["x"], 649 "M507": ["x"],
645 "M513": ["Exception"], 650 "M513": ["Exception"],
646 "M514": ["OSError, IOError", " as err", "OSError"], 651 "M514": ["OSError, IOError", " as err", "OSError"],
647 "M518": ["List"], 652 "M518": ["List"],

eric ide

mercurial