562 "'.next()' does not exist in Python 3"), |
562 "'.next()' does not exist in Python 3"), |
563 "M514": QCoreApplication.translate( |
563 "M514": QCoreApplication.translate( |
564 "MiscellaneousChecker", |
564 "MiscellaneousChecker", |
565 "'__metaclass__' does nothing on Python 3 -" |
565 "'__metaclass__' does nothing on Python 3 -" |
566 " use 'class MyClass(BaseClass, metaclass=...)'"), |
566 " use 'class MyClass(BaseClass, metaclass=...)'"), |
567 |
|
568 "M601": QCoreApplication.translate( |
567 "M601": QCoreApplication.translate( |
569 "MiscellaneousChecker", |
568 "MiscellaneousChecker", |
570 "found {0} formatter"), |
569 "found {0} formatter"), |
571 "M611": QCoreApplication.translate( |
570 "M611": QCoreApplication.translate( |
572 "MiscellaneousChecker", |
571 "MiscellaneousChecker", |
635 "MiscellaneousChecker", |
634 "MiscellaneousChecker", |
636 "mutable default argument of type {0}"), |
635 "mutable default argument of type {0}"), |
637 "M823": QCoreApplication.translate( |
636 "M823": QCoreApplication.translate( |
638 "MiscellaneousChecker", |
637 "MiscellaneousChecker", |
639 "mutable default argument of function call '{0}'"), |
638 "mutable default argument of function call '{0}'"), |
|
639 "M831": QCoreApplication.translate( |
|
640 "MiscellaneousChecker", |
|
641 "None should not be added at any return if function has no return" |
|
642 " value except None"), |
|
643 "M832": QCoreApplication.translate( |
|
644 "MiscellaneousChecker", |
|
645 "an explicit value at every return should be added if function has" |
|
646 " a return value except None"), |
|
647 "M833": QCoreApplication.translate( |
|
648 "MiscellaneousChecker", |
|
649 "an explicit return at the end of the function should be added if" |
|
650 " it has a return value except None"), |
|
651 "M834": QCoreApplication.translate( |
|
652 "MiscellaneousChecker", |
|
653 "a value should not be assigned to a variable if it will be used as a" |
|
654 " return value only"), |
640 "M901": QCoreApplication.translate( |
655 "M901": QCoreApplication.translate( |
641 "MiscellaneousChecker", |
656 "MiscellaneousChecker", |
642 "{0}: {1}"), |
657 "{0}: {1}"), |
643 |
658 |
644 # CodeStyleFixer messages |
659 # CodeStyleFixer messages |