Plugins/CheckerPlugins/CodeStyleChecker/pep8.py

changeset 3617
2f859c5dcfb4
parent 3616
081b69e00f3e
child 3629
98e90f613114
equal deleted inserted replaced
3616:081b69e00f3e 3617:2f859c5dcfb4
1688 1688
1689 if not options.reporter: 1689 if not options.reporter:
1690 options.reporter = BaseReport if options.quiet else StandardReport 1690 options.reporter = BaseReport if options.quiet else StandardReport
1691 1691
1692 options.select = tuple(options.select or ()) 1692 options.select = tuple(options.select or ())
1693 if not (options.select or options.ignore or 1693 # if not (options.select or options.ignore or
1694 options.testsuite or options.doctest) and DEFAULT_IGNORE: 1694 # options.testsuite or options.doctest) and DEFAULT_IGNORE:
1695 # The default choice: ignore controversial checks 1695 # # The default choice: ignore controversial checks
1696 options.ignore = tuple(DEFAULT_IGNORE.split(',')) 1696 # options.ignore = tuple(DEFAULT_IGNORE.split(','))
1697 else: 1697 # else:
1698 # Ignore all checks which are not explicitly selected 1698 # Ignore all checks which are not explicitly selected or all if no
1699 options.ignore = ('',) if options.select else tuple(options.ignore) 1699 # check is ignored or explicitly selected
1700 options.ignore = ('',) if options.select else tuple(options.ignore)
1700 options.benchmark_keys = BENCHMARK_KEYS[:] 1701 options.benchmark_keys = BENCHMARK_KEYS[:]
1701 options.ignore_code = self.ignore_code 1702 options.ignore_code = self.ignore_code
1702 options.physical_checks = self.get_checks('physical_line') 1703 options.physical_checks = self.get_checks('physical_line')
1703 options.logical_checks = self.get_checks('logical_line') 1704 options.logical_checks = self.get_checks('logical_line')
1704 options.ast_checks = self.get_checks('tree') 1705 options.ast_checks = self.get_checks('tree')

eric ide

mercurial