Framework to run all checks. More...

| Public Member Functions | |
| def | __init__ (self, filename=None, lines=None, options=None, report=None, **kwargs) | 
| def | build_tokens_line (self) | 
| def | check_all (self, expected=None, line_offset=0) | 
| def | check_ast (self) | 
| def | check_logical (self) | 
| def | check_physical (self, line) | 
| def | generate_tokens (self) | 
| def | init_checker_state (self, name, argument_names) | 
| def | maybe_check_physical (self, token) | 
| def | readline (self) | 
| def | report_invalid_syntax (self) | 
| def | run_check (self, check, argument_names) | 
| Private Attributes | |
| _ast_checks | |
| _checker_states | |
| _io_error | |
| _logical_checks | |
| _physical_checks | |
Framework to run all checks.
Load a Python source file, tokenize it, check coding style.
Definition at line 1904 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.__init__ | ( | self, | |
| filename = None, | |||
| lines = None, | |||
| options = None, | |||
| report = None, | |||
| ** | kwargs | ||
| ) | 
Definition at line 1907 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.build_tokens_line | ( | self | ) | 
Build a logical line from tokens.
Definition at line 1998 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.check_all | ( | self, | |
| expected = None, | |||
| line_offset = 0 | |||
| ) | 
Run all checks on the input file.
Definition at line 2126 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.check_ast | ( | self | ) | 
Build the file's AST and run all AST checks.
Definition at line 2066 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.check_logical | ( | self | ) | 
Build a line from tokens and run all logical checks on it.
Definition at line 2031 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.check_physical | ( | self, | |
| line | |||
| ) | 
Run all physical checks on a raw input line.
Definition at line 1986 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.generate_tokens | ( | self | ) | 
Tokenize file, run physical line checks and yield tokens.
Definition at line 2078 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.init_checker_state | ( | self, | |
| name, | |||
| argument_names | |||
| ) | 
Prepare custom state for the specific checker plugin.
Definition at line 1981 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.maybe_check_physical | ( | self, | |
| token | |||
| ) | 
If appropriate for token, check current physical line(s).
Definition at line 2093 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.readline | ( | self | ) | 
Get the next line from the input buffer.
Definition at line 1964 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.report_invalid_syntax | ( | self | ) | 
Check if the syntax is valid.
Definition at line 1951 of file pycodestyle.py.
| def roslint.pycodestyle.Checker.run_check | ( | self, | |
| check, | |||
| argument_names | |||
| ) | 
Run a check plugin.
Definition at line 1974 of file pycodestyle.py.
| 
 | private | 
Definition at line 1915 of file pycodestyle.py.
| 
 | private | 
Definition at line 1923 of file pycodestyle.py.
| 
 | private | 
Definition at line 1912 of file pycodestyle.py.
| 
 | private | 
Definition at line 1914 of file pycodestyle.py.
| 
 | private | 
Definition at line 1913 of file pycodestyle.py.
| roslint.pycodestyle.Checker.blank_before | 
Definition at line 2043 of file pycodestyle.py.
| roslint.pycodestyle.Checker.blank_lines | 
Definition at line 2063 of file pycodestyle.py.
| roslint.pycodestyle.Checker.checker_state | 
Definition at line 1984 of file pycodestyle.py.
| roslint.pycodestyle.Checker.filename | 
Definition at line 1921 of file pycodestyle.py.
| roslint.pycodestyle.Checker.hang_closing | 
Definition at line 1919 of file pycodestyle.py.
| roslint.pycodestyle.Checker.indent_char | 
Definition at line 1971 of file pycodestyle.py.
| roslint.pycodestyle.Checker.indent_level | 
Definition at line 2041 of file pycodestyle.py.
| roslint.pycodestyle.Checker.line_number | 
Definition at line 2118 of file pycodestyle.py.
| roslint.pycodestyle.Checker.lines | 
Definition at line 1926 of file pycodestyle.py.
| roslint.pycodestyle.Checker.logical_line | 
Definition at line 2027 of file pycodestyle.py.
| roslint.pycodestyle.Checker.max_doc_length | 
Definition at line 1917 of file pycodestyle.py.
| roslint.pycodestyle.Checker.max_line_length | 
Definition at line 1916 of file pycodestyle.py.
| roslint.pycodestyle.Checker.multiline | 
Definition at line 1918 of file pycodestyle.py.
| roslint.pycodestyle.Checker.noqa | 
Definition at line 1948 of file pycodestyle.py.
| roslint.pycodestyle.Checker.physical_line | 
Definition at line 1988 of file pycodestyle.py.
| roslint.pycodestyle.Checker.previous_indent_level | 
Definition at line 2059 of file pycodestyle.py.
| roslint.pycodestyle.Checker.previous_logical | 
Definition at line 2060 of file pycodestyle.py.
| roslint.pycodestyle.Checker.previous_unindented_logical_line | 
Definition at line 2062 of file pycodestyle.py.
| roslint.pycodestyle.Checker.report | 
Definition at line 1946 of file pycodestyle.py.
| roslint.pycodestyle.Checker.report_error | 
Definition at line 1947 of file pycodestyle.py.
| roslint.pycodestyle.Checker.tokens | 
Definition at line 2064 of file pycodestyle.py.
| roslint.pycodestyle.Checker.total_lines | 
Definition at line 2129 of file pycodestyle.py.
| roslint.pycodestyle.Checker.verbose | 
Definition at line 1920 of file pycodestyle.py.