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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11143
ef75c265ab47
child 11148
15e30f0c76a8
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
36 ################################################################## 36 ##################################################################
37 ## pycodestyle error messages 37 ## pycodestyle error messages
38 ################################################################## 38 ##################################################################
39 39
40 _pycodestyleErrorMessages = { 40 _pycodestyleErrorMessages = {
41 "E101": QCoreApplication.translate( 41 "E-101": QCoreApplication.translate(
42 "pycodestyle", "indentation contains mixed spaces and tabs" 42 "pycodestyle", "indentation contains mixed spaces and tabs"
43 ), 43 ),
44 "E111": QCoreApplication.translate( 44 "E-111": QCoreApplication.translate(
45 "pycodestyle", "indentation is not a multiple of four" 45 "pycodestyle", "indentation is not a multiple of four"
46 ), 46 ),
47 "E112": QCoreApplication.translate("pycodestyle", "expected an indented block"), 47 "E-112": QCoreApplication.translate("pycodestyle", "expected an indented block"),
48 "E113": QCoreApplication.translate("pycodestyle", "unexpected indentation"), 48 "E-113": QCoreApplication.translate("pycodestyle", "unexpected indentation"),
49 "E114": QCoreApplication.translate( 49 "E-114": QCoreApplication.translate(
50 "pycodestyle", "indentation is not a multiple of four (comment)" 50 "pycodestyle", "indentation is not a multiple of four (comment)"
51 ), 51 ),
52 "E115": QCoreApplication.translate( 52 "E-115": QCoreApplication.translate(
53 "pycodestyle", "expected an indented block (comment)" 53 "pycodestyle", "expected an indented block (comment)"
54 ), 54 ),
55 "E116": QCoreApplication.translate( 55 "E-116": QCoreApplication.translate(
56 "pycodestyle", "unexpected indentation (comment)" 56 "pycodestyle", "unexpected indentation (comment)"
57 ), 57 ),
58 "E117": QCoreApplication.translate("pycodestyle", "over-indented"), 58 "E-117": QCoreApplication.translate("pycodestyle", "over-indented"),
59 "E121": QCoreApplication.translate( 59 "E-121": QCoreApplication.translate(
60 "pycodestyle", "continuation line indentation is not a multiple of four" 60 "pycodestyle", "continuation line indentation is not a multiple of four"
61 ), 61 ),
62 "E122": QCoreApplication.translate( 62 "E-122": QCoreApplication.translate(
63 "pycodestyle", "continuation line missing indentation or outdented" 63 "pycodestyle", "continuation line missing indentation or outdented"
64 ), 64 ),
65 "E123": QCoreApplication.translate( 65 "E-123": QCoreApplication.translate(
66 "pycodestyle", 66 "pycodestyle",
67 "closing bracket does not match indentation of opening bracket's line", 67 "closing bracket does not match indentation of opening bracket's line",
68 ), 68 ),
69 "E124": QCoreApplication.translate( 69 "E-124": QCoreApplication.translate(
70 "pycodestyle", "closing bracket does not match visual indentation" 70 "pycodestyle", "closing bracket does not match visual indentation"
71 ), 71 ),
72 "E125": QCoreApplication.translate( 72 "E-125": QCoreApplication.translate(
73 "pycodestyle", "continuation line with same indent as next logical line" 73 "pycodestyle", "continuation line with same indent as next logical line"
74 ), 74 ),
75 "E126": QCoreApplication.translate( 75 "E-126": QCoreApplication.translate(
76 "pycodestyle", "continuation line over-indented for hanging indent" 76 "pycodestyle", "continuation line over-indented for hanging indent"
77 ), 77 ),
78 "E127": QCoreApplication.translate( 78 "E-127": QCoreApplication.translate(
79 "pycodestyle", "continuation line over-indented for visual indent" 79 "pycodestyle", "continuation line over-indented for visual indent"
80 ), 80 ),
81 "E128": QCoreApplication.translate( 81 "E-128": QCoreApplication.translate(
82 "pycodestyle", "continuation line under-indented for visual indent" 82 "pycodestyle", "continuation line under-indented for visual indent"
83 ), 83 ),
84 "E129": QCoreApplication.translate( 84 "E-129": QCoreApplication.translate(
85 "pycodestyle", "visually indented line with same indent as next logical line" 85 "pycodestyle", "visually indented line with same indent as next logical line"
86 ), 86 ),
87 "E131": QCoreApplication.translate( 87 "E-131": QCoreApplication.translate(
88 "pycodestyle", "continuation line unaligned for hanging indent" 88 "pycodestyle", "continuation line unaligned for hanging indent"
89 ), 89 ),
90 "E133": QCoreApplication.translate( 90 "E-133": QCoreApplication.translate(
91 "pycodestyle", "closing bracket is missing indentation" 91 "pycodestyle", "closing bracket is missing indentation"
92 ), 92 ),
93 "E201": QCoreApplication.translate("pycodestyle", "whitespace after '{0}'"), 93 "E-201": QCoreApplication.translate("pycodestyle", "whitespace after '{0}'"),
94 "E202": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), 94 "E-202": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"),
95 "E203": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), 95 "E-203": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"),
96 "E204": QCoreApplication.translate("pycodestyle", "whitespace after decorator '@'"), 96 "E-204": QCoreApplication.translate("pycodestyle", "whitespace after decorator '@'"),
97 "E211": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"), 97 "E-211": QCoreApplication.translate("pycodestyle", "whitespace before '{0}'"),
98 "E221": QCoreApplication.translate( 98 "E-221": QCoreApplication.translate(
99 "pycodestyle", "multiple spaces before operator" 99 "pycodestyle", "multiple spaces before operator"
100 ), 100 ),
101 "E222": QCoreApplication.translate("pycodestyle", "multiple spaces after operator"), 101 "E-222": QCoreApplication.translate("pycodestyle", "multiple spaces after operator"),
102 "E223": QCoreApplication.translate("pycodestyle", "tab before operator"), 102 "E-223": QCoreApplication.translate("pycodestyle", "tab before operator"),
103 "E224": QCoreApplication.translate("pycodestyle", "tab after operator"), 103 "E-224": QCoreApplication.translate("pycodestyle", "tab after operator"),
104 "E225": QCoreApplication.translate( 104 "E-225": QCoreApplication.translate(
105 "pycodestyle", "missing whitespace around operator" 105 "pycodestyle", "missing whitespace around operator"
106 ), 106 ),
107 "E226": QCoreApplication.translate( 107 "E-226": QCoreApplication.translate(
108 "pycodestyle", "missing whitespace around arithmetic operator" 108 "pycodestyle", "missing whitespace around arithmetic operator"
109 ), 109 ),
110 "E227": QCoreApplication.translate( 110 "E-227": QCoreApplication.translate(
111 "pycodestyle", "missing whitespace around bitwise or shift operator" 111 "pycodestyle", "missing whitespace around bitwise or shift operator"
112 ), 112 ),
113 "E228": QCoreApplication.translate( 113 "E-228": QCoreApplication.translate(
114 "pycodestyle", "missing whitespace around modulo operator" 114 "pycodestyle", "missing whitespace around modulo operator"
115 ), 115 ),
116 "E231": QCoreApplication.translate("pycodestyle", "missing whitespace after '{0}'"), 116 "E-231": QCoreApplication.translate("pycodestyle", "missing whitespace after '{0}'"),
117 "E241": QCoreApplication.translate("pycodestyle", "multiple spaces after '{0}'"), 117 "E-241": QCoreApplication.translate("pycodestyle", "multiple spaces after '{0}'"),
118 "E242": QCoreApplication.translate("pycodestyle", "tab after '{0}'"), 118 "E-242": QCoreApplication.translate("pycodestyle", "tab after '{0}'"),
119 "E251": QCoreApplication.translate( 119 "E-251": QCoreApplication.translate(
120 "pycodestyle", "unexpected spaces around keyword / parameter equals" 120 "pycodestyle", "unexpected spaces around keyword / parameter equals"
121 ), 121 ),
122 "E252": QCoreApplication.translate( 122 "E-252": QCoreApplication.translate(
123 "pycodestyle", "missing whitespace around parameter equals" 123 "pycodestyle", "missing whitespace around parameter equals"
124 ), 124 ),
125 "E261": QCoreApplication.translate( 125 "E-261": QCoreApplication.translate(
126 "pycodestyle", "at least two spaces before inline comment" 126 "pycodestyle", "at least two spaces before inline comment"
127 ), 127 ),
128 "E262": QCoreApplication.translate( 128 "E-262": QCoreApplication.translate(
129 "pycodestyle", "inline comment should start with '# '" 129 "pycodestyle", "inline comment should start with '# '"
130 ), 130 ),
131 "E265": QCoreApplication.translate( 131 "E-265": QCoreApplication.translate(
132 "pycodestyle", "block comment should start with '# '" 132 "pycodestyle", "block comment should start with '# '"
133 ), 133 ),
134 "E266": QCoreApplication.translate( 134 "E-266": QCoreApplication.translate(
135 "pycodestyle", "too many leading '#' for block comment" 135 "pycodestyle", "too many leading '#' for block comment"
136 ), 136 ),
137 "E271": QCoreApplication.translate("pycodestyle", "multiple spaces after keyword"), 137 "E-271": QCoreApplication.translate("pycodestyle", "multiple spaces after keyword"),
138 "E272": QCoreApplication.translate("pycodestyle", "multiple spaces before keyword"), 138 "E-272": QCoreApplication.translate("pycodestyle", "multiple spaces before keyword"),
139 "E273": QCoreApplication.translate("pycodestyle", "tab after keyword"), 139 "E-273": QCoreApplication.translate("pycodestyle", "tab after keyword"),
140 "E274": QCoreApplication.translate("pycodestyle", "tab before keyword"), 140 "E-274": QCoreApplication.translate("pycodestyle", "tab before keyword"),
141 "E275": QCoreApplication.translate( 141 "E-275": QCoreApplication.translate(
142 "pycodestyle", "missing whitespace after keyword" 142 "pycodestyle", "missing whitespace after keyword"
143 ), 143 ),
144 "E301": QCoreApplication.translate( 144 "E-301": QCoreApplication.translate(
145 "pycodestyle", "expected {0} blank lines, found {1}" 145 "pycodestyle", "expected {0} blank lines, found {1}"
146 ), 146 ),
147 "E302": QCoreApplication.translate( 147 "E-302": QCoreApplication.translate(
148 "pycodestyle", "expected {0} blank lines, found {1}" 148 "pycodestyle", "expected {0} blank lines, found {1}"
149 ), 149 ),
150 "E303": QCoreApplication.translate( 150 "E-303": QCoreApplication.translate(
151 "pycodestyle", "too many blank lines ({0}), expected {1}" 151 "pycodestyle", "too many blank lines ({0}), expected {1}"
152 ), 152 ),
153 "E304": QCoreApplication.translate( 153 "E-304": QCoreApplication.translate(
154 "pycodestyle", "blank lines found after function decorator" 154 "pycodestyle", "blank lines found after function decorator"
155 ), 155 ),
156 "E305": QCoreApplication.translate( 156 "E-305": QCoreApplication.translate(
157 "pycodestyle", 157 "pycodestyle",
158 "expected {0} blank lines after class or function definition, found {1}", 158 "expected {0} blank lines after class or function definition, found {1}",
159 ), 159 ),
160 "E306": QCoreApplication.translate( 160 "E-306": QCoreApplication.translate(
161 "pycodestyle", "expected {0} blank lines before a nested definition, found {1}" 161 "pycodestyle", "expected {0} blank lines before a nested definition, found {1}"
162 ), 162 ),
163 "E307": QCoreApplication.translate( 163 "E-307": QCoreApplication.translate(
164 "pycodestyle", 164 "pycodestyle",
165 "too many blank lines ({0}) before a nested definition, expected {1}", 165 "too many blank lines ({0}) before a nested definition, expected {1}",
166 ), 166 ),
167 "E308": QCoreApplication.translate("pycodestyle", "too many blank lines ({0})"), 167 "E-308": QCoreApplication.translate("pycodestyle", "too many blank lines ({0})"),
168 "E401": QCoreApplication.translate("pycodestyle", "multiple imports on one line"), 168 "E-401": QCoreApplication.translate("pycodestyle", "multiple imports on one line"),
169 "E402": QCoreApplication.translate( 169 "E-402": QCoreApplication.translate(
170 "pycodestyle", "module level import not at top of file" 170 "pycodestyle", "module level import not at top of file"
171 ), 171 ),
172 "E501": QCoreApplication.translate( 172 "E-501": QCoreApplication.translate(
173 "pycodestyle", "line too long ({0} > {1} characters)" 173 "pycodestyle", "line too long ({0} > {1} characters)"
174 ), 174 ),
175 "E502": QCoreApplication.translate( 175 "E-502": QCoreApplication.translate(
176 "pycodestyle", "the backslash is redundant between brackets" 176 "pycodestyle", "the backslash is redundant between brackets"
177 ), 177 ),
178 "E701": QCoreApplication.translate( 178 "E-701": QCoreApplication.translate(
179 "pycodestyle", "multiple statements on one line (colon)" 179 "pycodestyle", "multiple statements on one line (colon)"
180 ), 180 ),
181 "E702": QCoreApplication.translate( 181 "E-702": QCoreApplication.translate(
182 "pycodestyle", "multiple statements on one line (semicolon)" 182 "pycodestyle", "multiple statements on one line (semicolon)"
183 ), 183 ),
184 "E703": QCoreApplication.translate( 184 "E-703": QCoreApplication.translate(
185 "pycodestyle", "statement ends with a semicolon" 185 "pycodestyle", "statement ends with a semicolon"
186 ), 186 ),
187 "E704": QCoreApplication.translate( 187 "E-704": QCoreApplication.translate(
188 "pycodestyle", "multiple statements on one line (def)" 188 "pycodestyle", "multiple statements on one line (def)"
189 ), 189 ),
190 "E711": QCoreApplication.translate( 190 "E-711": QCoreApplication.translate(
191 "pycodestyle", "comparison to {0} should be {1}" 191 "pycodestyle", "comparison to {0} should be {1}"
192 ), 192 ),
193 "E712": QCoreApplication.translate( 193 "E-712": QCoreApplication.translate(
194 "pycodestyle", "comparison to {0} should be {1}" 194 "pycodestyle", "comparison to {0} should be {1}"
195 ), 195 ),
196 "E713": QCoreApplication.translate( 196 "E-713": QCoreApplication.translate(
197 "pycodestyle", "test for membership should be 'not in'" 197 "pycodestyle", "test for membership should be 'not in'"
198 ), 198 ),
199 "E714": QCoreApplication.translate( 199 "E-714": QCoreApplication.translate(
200 "pycodestyle", "test for object identity should be 'is not'" 200 "pycodestyle", "test for object identity should be 'is not'"
201 ), 201 ),
202 "E721": QCoreApplication.translate( 202 "E-721": QCoreApplication.translate(
203 "pycodestyle", 203 "pycodestyle",
204 "do not compare types, for exact checks use 'is' / 'is not', " 204 "do not compare types, for exact checks use 'is' / 'is not', "
205 "for instance checks use 'isinstance()'", 205 "for instance checks use 'isinstance()'",
206 ), 206 ),
207 "E722": QCoreApplication.translate("pycodestyle", "do not use bare except"), 207 "E-722": QCoreApplication.translate("pycodestyle", "do not use bare except"),
208 "E731": QCoreApplication.translate( 208 "E-731": QCoreApplication.translate(
209 "pycodestyle", "do not assign a lambda expression, use a def" 209 "pycodestyle", "do not assign a lambda expression, use a def"
210 ), 210 ),
211 "E741": QCoreApplication.translate("pycodestyle", "ambiguous variable name '{0}'"), 211 "E-741": QCoreApplication.translate("pycodestyle", "ambiguous variable name '{0}'"),
212 "E742": QCoreApplication.translate( 212 "E-742": QCoreApplication.translate(
213 "pycodestyle", "ambiguous class definition '{0}'" 213 "pycodestyle", "ambiguous class definition '{0}'"
214 ), 214 ),
215 "E743": QCoreApplication.translate( 215 "E-743": QCoreApplication.translate(
216 "pycodestyle", "ambiguous function definition '{0}'" 216 "pycodestyle", "ambiguous function definition '{0}'"
217 ), 217 ),
218 "E901": QCoreApplication.translate("pycodestyle", "{0}: {1}"), 218 "E-901": QCoreApplication.translate("pycodestyle", "{0}: {1}"),
219 "E902": QCoreApplication.translate("pycodestyle", "{0}"), 219 "E-902": QCoreApplication.translate("pycodestyle", "{0}"),
220 } 220 }
221 221
222 ################################################################## 222 ##################################################################
223 ## pycodestyle warning messages 223 ## pycodestyle warning messages
224 ################################################################## 224 ##################################################################
225 225
226 _pycodestyleWarningMessages = { 226 _pycodestyleWarningMessages = {
227 "W191": QCoreApplication.translate("pycodestyle", "indentation contains tabs"), 227 "W-191": QCoreApplication.translate("pycodestyle", "indentation contains tabs"),
228 "W291": QCoreApplication.translate("pycodestyle", "trailing whitespace"), 228 "W-291": QCoreApplication.translate("pycodestyle", "trailing whitespace"),
229 "W292": QCoreApplication.translate("pycodestyle", "no newline at end of file"), 229 "W-292": QCoreApplication.translate("pycodestyle", "no newline at end of file"),
230 "W293": QCoreApplication.translate("pycodestyle", "blank line contains whitespace"), 230 "W-293": QCoreApplication.translate("pycodestyle", "blank line contains whitespace"),
231 "W391": QCoreApplication.translate("pycodestyle", "blank line at end of file"), 231 "W-391": QCoreApplication.translate("pycodestyle", "blank line at end of file"),
232 "W503": QCoreApplication.translate( 232 "W-503": QCoreApplication.translate(
233 "pycodestyle", "line break before binary operator" 233 "pycodestyle", "line break before binary operator"
234 ), 234 ),
235 "W504": QCoreApplication.translate( 235 "W-504": QCoreApplication.translate(
236 "pycodestyle", "line break after binary operator" 236 "pycodestyle", "line break after binary operator"
237 ), 237 ),
238 "W505": QCoreApplication.translate( 238 "W-505": QCoreApplication.translate(
239 "pycodestyle", "doc line too long ({0} > {1} characters)" 239 "pycodestyle", "doc line too long ({0} > {1} characters)"
240 ), 240 ),
241 "W605": QCoreApplication.translate( 241 "W-605": QCoreApplication.translate(
242 "pycodestyle", "invalid escape sequence '\\{0}'" 242 "pycodestyle", "invalid escape sequence '\\{0}'"
243 ), 243 ),
244 "W606": QCoreApplication.translate( 244 "W-606": QCoreApplication.translate(
245 "pycodestyle", 245 "pycodestyle",
246 "'async' and 'await' are reserved keywords starting with Python 3.7", 246 "'async' and 'await' are reserved keywords starting with Python 3.7",
247 ), 247 ),
248 } 248 }
249 249
250 ################################################################## 250 ##################################################################
251 ## CodeStyleFixer messages 251 ## CodeStyleFixer messages
252 ################################################################## 252 ##################################################################
253 253
254 _fixMessages = { 254 _fixMessages = {
255 "FIXD111": QCoreApplication.translate( 255 "FIX-D111": QCoreApplication.translate(
256 "CodeStyleFixer", "Triple single quotes converted to triple double quotes." 256 "CodeStyleFixer", "Triple single quotes converted to triple double quotes."
257 ), 257 ),
258 "FIXD112": QCoreApplication.translate( 258 "FIX-D112": QCoreApplication.translate(
259 "CodeStyleFixer", 'Introductory quotes corrected to be {0}"""' 259 "CodeStyleFixer", 'Introductory quotes corrected to be {0}"""'
260 ), 260 ),
261 "FIXD121": QCoreApplication.translate( 261 "FIX-D121": QCoreApplication.translate(
262 "CodeStyleFixer", "Single line docstring put on one line." 262 "CodeStyleFixer", "Single line docstring put on one line."
263 ), 263 ),
264 "FIXD131": QCoreApplication.translate( 264 "FIX-D131": QCoreApplication.translate(
265 "CodeStyleFixer", "Period added to summary line." 265 "CodeStyleFixer", "Period added to summary line."
266 ), 266 ),
267 "FIXD141": QCoreApplication.translate( 267 "FIX-D141": QCoreApplication.translate(
268 "CodeStyleFixer", "Blank line before function/method docstring removed." 268 "CodeStyleFixer", "Blank line before function/method docstring removed."
269 ), 269 ),
270 "FIXD142": QCoreApplication.translate( 270 "FIX-D142": QCoreApplication.translate(
271 "CodeStyleFixer", "Blank line inserted before class docstring." 271 "CodeStyleFixer", "Blank line inserted before class docstring."
272 ), 272 ),
273 "FIXD143": QCoreApplication.translate( 273 "FIX-D143": QCoreApplication.translate(
274 "CodeStyleFixer", "Blank line inserted after class docstring." 274 "CodeStyleFixer", "Blank line inserted after class docstring."
275 ), 275 ),
276 "FIXD144": QCoreApplication.translate( 276 "FIX-D144": QCoreApplication.translate(
277 "CodeStyleFixer", "Blank line inserted after docstring summary." 277 "CodeStyleFixer", "Blank line inserted after docstring summary."
278 ), 278 ),
279 "FIXD145": QCoreApplication.translate( 279 "FIX-D145": QCoreApplication.translate(
280 "CodeStyleFixer", "Blank line inserted after last paragraph of docstring." 280 "CodeStyleFixer", "Blank line inserted after last paragraph of docstring."
281 ), 281 ),
282 "FIXD221": QCoreApplication.translate( 282 "FIX-D221": QCoreApplication.translate(
283 "CodeStyleFixer", "Leading quotes put on separate line." 283 "CodeStyleFixer", "Leading quotes put on separate line."
284 ), 284 ),
285 "FIXD222": QCoreApplication.translate( 285 "FIX-D222": QCoreApplication.translate(
286 "CodeStyleFixer", "Trailing quotes put on separate line." 286 "CodeStyleFixer", "Trailing quotes put on separate line."
287 ), 287 ),
288 "FIXD242": QCoreApplication.translate( 288 "FIX-D242": QCoreApplication.translate(
289 "CodeStyleFixer", "Blank line before class docstring removed." 289 "CodeStyleFixer", "Blank line before class docstring removed."
290 ), 290 ),
291 "FIXD244": QCoreApplication.translate( 291 "FIX-D244": QCoreApplication.translate(
292 "CodeStyleFixer", "Blank line before function/method docstring removed." 292 "CodeStyleFixer", "Blank line before function/method docstring removed."
293 ), 293 ),
294 "FIXD243": QCoreApplication.translate( 294 "FIX-D243": QCoreApplication.translate(
295 "CodeStyleFixer", "Blank line after class docstring removed." 295 "CodeStyleFixer", "Blank line after class docstring removed."
296 ), 296 ),
297 "FIXD245": QCoreApplication.translate( 297 "FIX-D245": QCoreApplication.translate(
298 "CodeStyleFixer", "Blank line after function/method docstring removed." 298 "CodeStyleFixer", "Blank line after function/method docstring removed."
299 ), 299 ),
300 "FIXD247": QCoreApplication.translate( 300 "FIX-D247": QCoreApplication.translate(
301 "CodeStyleFixer", "Blank line after last paragraph removed." 301 "CodeStyleFixer", "Blank line after last paragraph removed."
302 ), 302 ),
303 "FIXE101": QCoreApplication.translate( 303 "FIX-E101": QCoreApplication.translate(
304 "CodeStyleFixer", "Tab converted to 4 spaces." 304 "CodeStyleFixer", "Tab converted to 4 spaces."
305 ), 305 ),
306 "FIXE111": QCoreApplication.translate( 306 "FIX-E111": QCoreApplication.translate(
307 "CodeStyleFixer", "Indentation adjusted to be a multiple of four." 307 "CodeStyleFixer", "Indentation adjusted to be a multiple of four."
308 ), 308 ),
309 "FIXE121": QCoreApplication.translate( 309 "FIX-E121": QCoreApplication.translate(
310 "CodeStyleFixer", "Indentation of continuation line corrected." 310 "CodeStyleFixer", "Indentation of continuation line corrected."
311 ), 311 ),
312 "FIXE124": QCoreApplication.translate( 312 "FIX-E124": QCoreApplication.translate(
313 "CodeStyleFixer", "Indentation of closing bracket corrected." 313 "CodeStyleFixer", "Indentation of closing bracket corrected."
314 ), 314 ),
315 "FIXE122": QCoreApplication.translate( 315 "FIX-E122": QCoreApplication.translate(
316 "CodeStyleFixer", "Missing indentation of continuation line corrected." 316 "CodeStyleFixer", "Missing indentation of continuation line corrected."
317 ), 317 ),
318 "FIXE123": QCoreApplication.translate( 318 "FIX-E123": QCoreApplication.translate(
319 "CodeStyleFixer", "Closing bracket aligned to opening bracket." 319 "CodeStyleFixer", "Closing bracket aligned to opening bracket."
320 ), 320 ),
321 "FIXE125": QCoreApplication.translate( 321 "FIX-E125": QCoreApplication.translate(
322 "CodeStyleFixer", "Indentation level changed." 322 "CodeStyleFixer", "Indentation level changed."
323 ), 323 ),
324 "FIXE126": QCoreApplication.translate( 324 "FIX-E126": QCoreApplication.translate(
325 "CodeStyleFixer", "Indentation level of hanging indentation changed." 325 "CodeStyleFixer", "Indentation level of hanging indentation changed."
326 ), 326 ),
327 "FIXE127": QCoreApplication.translate( 327 "FIX-E127": QCoreApplication.translate(
328 "CodeStyleFixer", "Visual indentation corrected." 328 "CodeStyleFixer", "Visual indentation corrected."
329 ), 329 ),
330 "FIXE201": QCoreApplication.translate( 330 "FIX-E201": QCoreApplication.translate(
331 "CodeStyleFixer", "Extraneous whitespace removed." 331 "CodeStyleFixer", "Extraneous whitespace removed."
332 ), 332 ),
333 "FIXE225": QCoreApplication.translate( 333 "FIX-E225": QCoreApplication.translate(
334 "CodeStyleFixer", "Missing whitespace added." 334 "CodeStyleFixer", "Missing whitespace added."
335 ), 335 ),
336 "FIXE221": QCoreApplication.translate( 336 "FIX-E221": QCoreApplication.translate(
337 "CodeStyleFixer", "Extraneous whitespace removed." 337 "CodeStyleFixer", "Extraneous whitespace removed."
338 ), 338 ),
339 "FIXE231": QCoreApplication.translate( 339 "FIX-E231": QCoreApplication.translate(
340 "CodeStyleFixer", "Missing whitespace added." 340 "CodeStyleFixer", "Missing whitespace added."
341 ), 341 ),
342 "FIXE251": QCoreApplication.translate( 342 "FIX-E251": QCoreApplication.translate(
343 "CodeStyleFixer", "Extraneous whitespace removed." 343 "CodeStyleFixer", "Extraneous whitespace removed."
344 ), 344 ),
345 "FIXE261": QCoreApplication.translate( 345 "FIX-E261": QCoreApplication.translate(
346 "CodeStyleFixer", "Whitespace around comment sign corrected." 346 "CodeStyleFixer", "Whitespace around comment sign corrected."
347 ), 347 ),
348 "FIXE302+": lambda n=1: QCoreApplication.translate( 348 "FIX-E302+": lambda n=1: QCoreApplication.translate(
349 "CodeStyleFixer", "%n blank line(s) inserted.", "", n 349 "CodeStyleFixer", "%n blank line(s) inserted.", "", n
350 ), 350 ),
351 "FIXE302-": lambda n=1: QCoreApplication.translate( 351 "FIX-E302-": lambda n=1: QCoreApplication.translate(
352 "CodeStyleFixer", "%n superfluous lines removed", "", n 352 "CodeStyleFixer", "%n superfluous lines removed", "", n
353 ), 353 ),
354 "FIXE303": QCoreApplication.translate( 354 "FIX-E303": QCoreApplication.translate(
355 "CodeStyleFixer", "Superfluous blank lines removed." 355 "CodeStyleFixer", "Superfluous blank lines removed."
356 ), 356 ),
357 "FIXE304": QCoreApplication.translate( 357 "FIX-E304": QCoreApplication.translate(
358 "CodeStyleFixer", "Superfluous blank lines after function decorator removed." 358 "CodeStyleFixer", "Superfluous blank lines after function decorator removed."
359 ), 359 ),
360 "FIXE401": QCoreApplication.translate( 360 "FIX-E401": QCoreApplication.translate(
361 "CodeStyleFixer", "Imports were put on separate lines." 361 "CodeStyleFixer", "Imports were put on separate lines."
362 ), 362 ),
363 "FIXE501": QCoreApplication.translate( 363 "FIX-E501": QCoreApplication.translate(
364 "CodeStyleFixer", "Long lines have been shortened." 364 "CodeStyleFixer", "Long lines have been shortened."
365 ), 365 ),
366 "FIXE502": QCoreApplication.translate( 366 "FIX-E502": QCoreApplication.translate(
367 "CodeStyleFixer", "Redundant backslash in brackets removed." 367 "CodeStyleFixer", "Redundant backslash in brackets removed."
368 ), 368 ),
369 "FIXE701": QCoreApplication.translate( 369 "FIX-E701": QCoreApplication.translate(
370 "CodeStyleFixer", "Compound statement corrected." 370 "CodeStyleFixer", "Compound statement corrected."
371 ), 371 ),
372 "FIXE702": QCoreApplication.translate( 372 "FIX-E702": QCoreApplication.translate(
373 "CodeStyleFixer", "Compound statement corrected." 373 "CodeStyleFixer", "Compound statement corrected."
374 ), 374 ),
375 "FIXE711": QCoreApplication.translate( 375 "FIX-E711": QCoreApplication.translate(
376 "CodeStyleFixer", "Comparison to None/True/False corrected." 376 "CodeStyleFixer", "Comparison to None/True/False corrected."
377 ), 377 ),
378 "FIXN804": QCoreApplication.translate("CodeStyleFixer", "'{0}' argument added."), 378 "FIX-N804": QCoreApplication.translate("CodeStyleFixer", "'{0}' argument added."),
379 "FIXN806": QCoreApplication.translate("CodeStyleFixer", "'{0}' argument removed."), 379 "FIX-N806": QCoreApplication.translate("CodeStyleFixer", "'{0}' argument removed."),
380 "FIXW291": QCoreApplication.translate( 380 "FIX-W291": QCoreApplication.translate(
381 "CodeStyleFixer", "Whitespace stripped from end of line." 381 "CodeStyleFixer", "Whitespace stripped from end of line."
382 ), 382 ),
383 "FIXW292": QCoreApplication.translate( 383 "FIX-W292": QCoreApplication.translate(
384 "CodeStyleFixer", "newline added to end of file." 384 "CodeStyleFixer", "newline added to end of file."
385 ), 385 ),
386 "FIXW391": QCoreApplication.translate( 386 "FIX-W391": QCoreApplication.translate(
387 "CodeStyleFixer", "Superfluous trailing blank lines removed from end of file." 387 "CodeStyleFixer", "Superfluous trailing blank lines removed from end of file."
388 ), 388 ),
389 "FIXW603": QCoreApplication.translate("CodeStyleFixer", "'<>' replaced by '!='."), 389 "FIX-W603": QCoreApplication.translate("CodeStyleFixer", "'<>' replaced by '!='."),
390 "FIXWRITE_ERROR": QCoreApplication.translate( 390 "FIX-WRITE_ERROR": QCoreApplication.translate(
391 "CodeStyleFixer", "Could not save the file! Skipping it. Reason: {0}" 391 "CodeStyleFixer", "Could not save the file! Skipping it. Reason: {0}"
392 ), 392 ),
393 } 393 }
394 394
395 _pycodestyleErrorMessagesSampleArgs = { 395 _pycodestyleErrorMessagesSampleArgs = {
396 "E201": ["([{"], 396 "E-201": ["([{"],
397 "E202": ["}])"], 397 "E-202": ["}])"],
398 "E203": [",;:"], 398 "E-203": [",;:"],
399 "E211": ["(["], 399 "E-211": ["(["],
400 "E231": [",;:"], 400 "E-231": [",;:"],
401 "E241": [",;:"], 401 "E-241": [",;:"],
402 "E242": [",;:"], 402 "E-242": [",;:"],
403 "E301": [1, 0], 403 "E-301": [1, 0],
404 "E302": [2, 1], 404 "E-302": [2, 1],
405 "E303": [3, 2], 405 "E-303": [3, 2],
406 "E305": [2, 1], 406 "E-305": [2, 1],
407 "E306": [1, 0], 407 "E-306": [1, 0],
408 "E307": [3, 1], 408 "E-307": [3, 1],
409 "E308": [3], 409 "E-308": [3],
410 "E501": [95, 88], 410 "E-501": [95, 88],
411 "E711": ["None", "'if cond is None:'"], 411 "E-711": ["None", "'if cond is None:'"],
412 "E712": ["True", "'if cond is True:' or 'if cond:'"], 412 "E-712": ["True", "'if cond is True:' or 'if cond:'"],
413 "E741": ["l"], 413 "E-741": ["l"],
414 "E742": ["l"], 414 "E-742": ["l"],
415 "E743": ["l"], 415 "E-743": ["l"],
416 "E901": ["SyntaxError", "Invalid Syntax"], 416 "E-901": ["SyntaxError", "Invalid Syntax"],
417 "E902": ["OSError"], 417 "E-902": ["OSError"],
418 } 418 }
419 419
420 _pycodestyleWarningMessagesSampleArgs = { 420 _pycodestyleWarningMessagesSampleArgs = {
421 "W505": [80, 72], 421 "W-505": [80, 72],
422 "W605": ["A"], 422 "W-605": ["A"],
423 } 423 }
424 424
425 _fixMessagesSampleArgs = { 425 _fixMessagesSampleArgs = {
426 "FIXWRITE_ERROR": ["OSError"], 426 "FIX-WRITE_ERROR": ["OSError"],
427 } 427 }
428 428
429 messageCatalogs = { 429 messageCatalogs = {
430 "A": _annotationsMessages, 430 "A": _annotationsMessages,
431 "ASY": _asyncMessages, 431 "ASY": _asyncMessages,

eric ide

mercurial