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

branch
eric7
changeset 8759
7efebdfa5dc2
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8757:23b2fe1cd863 8759:7efebdfa5dc2
48 "MiscellaneousChecker", 48 "MiscellaneousChecker",
49 'unnecessary list comprehension - rewrite as a dict comprehension'), 49 'unnecessary list comprehension - rewrite as a dict comprehension'),
50 "M186": QCoreApplication.translate( 50 "M186": QCoreApplication.translate(
51 "MiscellaneousChecker", 51 "MiscellaneousChecker",
52 'unnecessary {0} call - rewrite as a literal'), 52 'unnecessary {0} call - rewrite as a literal'),
53 "M187": QCoreApplication.translate( 53 "M187a": QCoreApplication.translate(
54 "MiscellaneousChecker", 54 "MiscellaneousChecker",
55 'unnecessary list comprehension - "{0}" can take a generator'), 55 'unnecessary {0} call around {1}()'
56 ' - toggle reverse argument to sorted()'),
57 "M187b": QCoreApplication.translate(
58 "MiscellaneousChecker",
59 'unnecessary {0} call around {1}() - use sorted(..., reverse={2})'),
60 "M187c": QCoreApplication.translate(
61 "MiscellaneousChecker",
62 'unnecessary {0} call around {1}()'),
63 "M188": QCoreApplication.translate(
64 "MiscellaneousChecker",
65 'unnecessary {0} call within {1}()'),
66 "M189": QCoreApplication.translate(
67 "MiscellaneousChecker",
68 'unnecessary subscript reversal of iterable within {0}()'),
56 "M191": QCoreApplication.translate( 69 "M191": QCoreApplication.translate(
57 "MiscellaneousChecker", 70 "MiscellaneousChecker",
58 'unnecessary {0} literal - rewrite as a {1} literal'), 71 'unnecessary {0} literal - rewrite as a {1} literal'),
59 "M192": QCoreApplication.translate( 72 "M192": QCoreApplication.translate(
60 "MiscellaneousChecker", 73 "MiscellaneousChecker",
65 "M195": QCoreApplication.translate( 78 "M195": QCoreApplication.translate(
66 "MiscellaneousChecker", 79 "MiscellaneousChecker",
67 'unnecessary list call - remove the outer call to list()'), 80 'unnecessary list call - remove the outer call to list()'),
68 "M196": QCoreApplication.translate( 81 "M196": QCoreApplication.translate(
69 "MiscellaneousChecker", 82 "MiscellaneousChecker",
70 'unnecessary list comprehension - "in" can take a generator'), 83 'unnecessary {0} comprehension - rewrite using {0}()'),
71 "M197": QCoreApplication.translate( 84 "M197": QCoreApplication.translate(
72 "MiscellaneousChecker", 85 "MiscellaneousChecker",
73 'unnecessary {0} passed to tuple() - remove the outer call to {1}()'), 86 'unnecessary {0} passed to tuple() - remove the outer call to {1}()'),
74 "M198": QCoreApplication.translate( 87 "M198": QCoreApplication.translate(
75 "MiscellaneousChecker", 88 "MiscellaneousChecker",
323 336
324 _miscellaneousMessagesSampleArgs = { 337 _miscellaneousMessagesSampleArgs = {
325 "M102": ["enc42"], 338 "M102": ["enc42"],
326 "M131": ["list"], 339 "M131": ["list"],
327 "M132": ["list"], 340 "M132": ["list"],
328 "M188": ["sorted"],
329 "M186": ["list"], 341 "M186": ["list"],
342 "M187a": ["reversed", "sorted"],
343 "M187b": ["reversed", "sorted", "True"],
344 "M187c": ["list", "sorted"],
345 "M188": ["sorted", "list"],
346 "M189": ["sorted"],
330 "M191": ["list", "set"], 347 "M191": ["list", "set"],
331 "M192": ["list", "tuple"], 348 "M192": ["list", "tuple"],
332 "M193": ["tuple", "list"], 349 "M193": ["tuple", "list"],
350 "M196": ["list"],
333 "M197": ["tuple", "tuple"], 351 "M197": ["tuple", "tuple"],
334 "M198": ["list", "list"], 352 "M198": ["list", "list"],
335 "M201": ["bar", "foo"], 353 "M201": ["bar", "foo"],
336 "M507": ["x"], 354 "M507": ["x"],
337 "M601": ["%s"], 355 "M601": ["%s"],

eric ide

mercurial