439 "MiscellaneousChecker", |
439 "MiscellaneousChecker", |
440 "copyright notice contains invalid author"), |
440 "copyright notice contains invalid author"), |
441 "M121": QCoreApplication.translate( |
441 "M121": QCoreApplication.translate( |
442 "MiscellaneousChecker", |
442 "MiscellaneousChecker", |
443 "blind except: statement"), # __IGNORE_WARNING__ |
443 "blind except: statement"), # __IGNORE_WARNING__ |
|
444 "M131": QCoreApplication.translate( |
|
445 "MiscellaneousChecker", |
|
446 '"{0}" is a Python builtin and is being shadowed; ' |
|
447 'consider renaming the variable'), |
|
448 "M132": QCoreApplication.translate( |
|
449 "MiscellaneousChecker", |
|
450 '"{0}" is used as an argument and thus shadows a ' |
|
451 'Python builtin; consider renaming the argument'), |
|
452 "M191": QCoreApplication.translate( |
|
453 "MiscellaneousChecker", |
|
454 'unnecessary generator - rewrite as a list comprehension'), |
|
455 "M192": QCoreApplication.translate( |
|
456 "MiscellaneousChecker", |
|
457 'unnecessary generator - rewrite as a set comprehension'), |
|
458 "M193": QCoreApplication.translate( |
|
459 "MiscellaneousChecker", |
|
460 'unnecessary generator - rewrite as a dict comprehension'), |
|
461 "M194": QCoreApplication.translate( |
|
462 "MiscellaneousChecker", |
|
463 'unnecessary list comprehension - rewrite as a set comprehension'), |
|
464 "M195": QCoreApplication.translate( |
|
465 "MiscellaneousChecker", |
|
466 'unnecessary list comprehension - rewrite as a dict comprehension'), |
|
467 "M196": QCoreApplication.translate( |
|
468 "MiscellaneousChecker", |
|
469 'unnecessary list literal - rewrite as a set literal'), |
|
470 "M197": QCoreApplication.translate( |
|
471 "MiscellaneousChecker", |
|
472 'unnecessary list literal - rewrite as a dict literal'), |
|
473 "M198": QCoreApplication.translate( |
|
474 "MiscellaneousChecker", |
|
475 'unnecessary list comprehension - "{0}" can take a generator'), |
444 "M601": QCoreApplication.translate( |
476 "M601": QCoreApplication.translate( |
445 "MiscellaneousChecker", |
477 "MiscellaneousChecker", |
446 "found {0} formatter"), |
478 "found {0} formatter"), |
447 "M611": QCoreApplication.translate( |
479 "M611": QCoreApplication.translate( |
448 "MiscellaneousChecker", |
480 "MiscellaneousChecker", |
665 "D232": ["public"], |
697 "D232": ["public"], |
666 "D901": ["SyntaxError", "Invalid Syntax"], |
698 "D901": ["SyntaxError", "Invalid Syntax"], |
667 "C101": ["foo.bar", "42"], |
699 "C101": ["foo.bar", "42"], |
668 "C901": ["SyntaxError", "Invalid Syntax"], |
700 "C901": ["SyntaxError", "Invalid Syntax"], |
669 "M102": ["enc42"], |
701 "M102": ["enc42"], |
670 "M131": ["%s"], |
702 "M131": ["list"], |
|
703 "M132": ["list"], |
|
704 "M198": ["sorted"], |
|
705 "M601": ["%s"], |
671 "M621": [5], |
706 "M621": [5], |
672 "M622": ["foo"], |
707 "M622": ["foo"], |
673 "M631": [5], |
708 "M631": [5], |
674 "M632": ["foo"], |
709 "M632": ["foo"], |
675 "M701": ["print_function, unicode_literals", "print_function"], |
710 "M701": ["print_function, unicode_literals", "print_function"], |