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

branch
eric7
changeset 10361
e6ff9a4f6ee5
parent 10360
9ffdb1490bd2
child 10362
cfa7034cccf6
equal deleted inserted replaced
10360:9ffdb1490bd2 10361:e6ff9a4f6ee5
130 "M199": QCoreApplication.translate( 130 "M199": QCoreApplication.translate(
131 "MiscellaneousChecker", 131 "MiscellaneousChecker",
132 "Unnecessary list comprehension passed to {0}() prevents short-circuiting" 132 "Unnecessary list comprehension passed to {0}() prevents short-circuiting"
133 " - rewrite as a generator" 133 " - rewrite as a generator"
134 ), 134 ),
135
136
137
138
139 ## Dictionaries with sorted keys 135 ## Dictionaries with sorted keys
140 "M201": QCoreApplication.translate( 136 "M201": QCoreApplication.translate(
141 "MiscellaneousChecker", 137 "MiscellaneousChecker",
142 "sort keys - '{0}' should be before '{1}'", 138 "sort keys - '{0}' should be before '{1}'",
143 ), 139 ),
597 "M841": QCoreApplication.translate( 593 "M841": QCoreApplication.translate(
598 "MiscellaneousChecker", 594 "MiscellaneousChecker",
599 "prefer implied line continuation inside parentheses, " 595 "prefer implied line continuation inside parentheses, "
600 "brackets and braces as opposed to a backslash", 596 "brackets and braces as opposed to a backslash",
601 ), 597 ),
598 ## implicitly concatenated strings
599 "M851": QCoreApplication.translate(
600 "MiscellaneousChecker",
601 "implicitly concatenated string or bytes literals on one line",
602 ),
603 "M852": QCoreApplication.translate(
604 "MiscellaneousChecker",
605 "implicitly concatenated string or bytes literals over continuation line",
606 ),
607 "M853": QCoreApplication.translate(
608 "MiscellaneousChecker",
609 "explicitly concatenated string or bytes should be implicitly concatenated",
610 ),
602 ## commented code 611 ## commented code
603 "M891": QCoreApplication.translate( 612 "M891": QCoreApplication.translate(
604 "MiscellaneousChecker", 613 "MiscellaneousChecker",
605 "commented code lines should be removed", 614 "commented code lines should be removed",
606 ), 615 ),
607 } 616 }
608 617
609 _miscellaneousMessagesSampleArgs = { 618 _miscellaneousMessagesSampleArgs = {
619 ## Coding line
610 "M102": ["enc42"], 620 "M102": ["enc42"],
621 ## Shadowed Builtins
611 "M131": ["list"], 622 "M131": ["list"],
612 "M132": ["list"], 623 "M132": ["list"],
624 ## Comprehensions
613 "M185": ["list", "set"], 625 "M185": ["list", "set"],
614 "M186": ["list", "dict"], 626 "M186": ["list", "dict"],
615 "M188": ["list"], 627 "M188": ["list"],
616 "M189a": ["tuple", "tuple"], 628 "M189a": ["tuple", "tuple"],
617 "M189b": ["list", "tuple"], 629 "M189b": ["list", "tuple"],
624 "M195": ["sorted"], 636 "M195": ["sorted"],
625 "M196": ["list"], 637 "M196": ["list"],
626 "M197": ["list"], 638 "M197": ["list"],
627 "M198": ["dict comprehension"], 639 "M198": ["dict comprehension"],
628 "M199": ["any"], 640 "M199": ["any"],
641 ## Dictionaries with sorted keys
629 "M201": ["bar", "foo"], 642 "M201": ["bar", "foo"],
643 ## Property
630 "M210": [2], 644 "M210": [2],
631 "M211": [1], 645 "M211": [1],
632 "M212": [2], 646 "M212": [2],
633 "M213": ["foo", "bar"], 647 "M213": ["foo", "bar"],
634 "M214": ["foo", "bar"], 648 "M214": ["foo", "bar"],
635 "M215": ["foo", "bar"], 649 "M215": ["foo", "bar"],
636 "M216": ["foo", "bar"], 650 "M216": ["foo", "bar"],
637 "M217": ["foo"], 651 "M217": ["foo"],
652 ## Bugbear
638 "M507": ["x"], 653 "M507": ["x"],
639 "M513": ["Exception"], 654 "M513": ["Exception"],
640 "M514": ["OSError, IOError", " as err", "OSError"], 655 "M514": ["OSError, IOError", " as err", "OSError"],
641 "M523": ["x"], 656 "M523": ["x"],
642 "M524": ["foobar"], 657 "M524": ["foobar"],
643 "M525": ["OSError"], 658 "M525": ["OSError"],
644 "M527": ["foo"], 659 "M527": ["foo"],
645 "M533": ["foo"], 660 "M533": ["foo"],
646 "M534": ["split", "maxsplit"], 661 "M534": ["split", "maxsplit"],
647 "M535": ["foo"], 662 "M535": ["foo"],
663 ## Format Strings
648 "M601": ["%s"], 664 "M601": ["%s"],
649 "M621": [5], 665 "M621": [5],
650 "M622": ["foo"], 666 "M622": ["foo"],
651 "M631": [5], 667 "M631": [5],
652 "M632": ["foo"], 668 "M632": ["foo"],
669 ## Future statements
653 "M701": ["print_function, unicode_literals", "print_function"], 670 "M701": ["print_function, unicode_literals", "print_function"],
654 "M702": ["print_function, unicode_literals"], 671 "M702": ["print_function, unicode_literals"],
672 ## Gettext
655 "M711": ["lgettext"], 673 "M711": ["lgettext"],
674 ## Mutable Defaults
656 "M821": ["Dict"], 675 "M821": ["Dict"],
657 "M822": ["Call"], 676 "M822": ["Call"],
658 "M823": ["dict"], 677 "M823": ["dict"],
659 } 678 }

eric ide

mercurial