Public Member Functions | Public Attributes | Private Attributes | List of all members
roslint.pep8.Checker Class Reference
Inheritance diagram for roslint.pep8.Checker:
Inheritance graph
[legend]

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)
 

Public Attributes

 blank_before
 
 blank_lines
 
 checker_state
 
 filename
 
 hang_closing
 
 indent_char
 
 indent_level
 
 line_number
 
 lines
 
 logical_line
 
 max_line_length
 
 multiline
 
 noqa
 
 physical_line
 
 previous_indent_level
 
 previous_logical
 
 report
 
 report_error
 
 tokens
 
 total_lines
 
 verbose
 

Private Attributes

 _ast_checks
 
 _checker_states
 
 _io_error
 
 _logical_checks
 
 _physical_checks
 

Detailed Description

Load a Python source file, tokenize it, check coding style.

Definition at line 1346 of file pep8.py.

Constructor & Destructor Documentation

def roslint.pep8.Checker.__init__ (   self,
  filename = None,
  lines = None,
  options = None,
  report = None,
  kwargs 
)

Definition at line 1350 of file pep8.py.

Member Function Documentation

def roslint.pep8.Checker.build_tokens_line (   self)
Build a logical line from tokens.

Definition at line 1438 of file pep8.py.

def roslint.pep8.Checker.check_all (   self,
  expected = None,
  line_offset = 0 
)
Run all checks on the input file.

Definition at line 1559 of file pep8.py.

def roslint.pep8.Checker.check_ast (   self)
Build the file's AST and run all AST checks.

Definition at line 1503 of file pep8.py.

def roslint.pep8.Checker.check_logical (   self)
Build a line from tokens and run all logical checks on it.

Definition at line 1471 of file pep8.py.

def roslint.pep8.Checker.check_physical (   self,
  line 
)
Run all physical checks on a raw input line.

Definition at line 1426 of file pep8.py.

def roslint.pep8.Checker.generate_tokens (   self)
Tokenize the file, run physical line checks and yield tokens.

Definition at line 1515 of file pep8.py.

def roslint.pep8.Checker.init_checker_state (   self,
  name,
  argument_names 
)
Prepares a custom state for the specific checker plugin.

Definition at line 1421 of file pep8.py.

def roslint.pep8.Checker.maybe_check_physical (   self,
  token 
)
If appropriate (based on token), check current physical line(s).

Definition at line 1529 of file pep8.py.

def roslint.pep8.Checker.readline (   self)
Get the next line from the input buffer.

Definition at line 1404 of file pep8.py.

def roslint.pep8.Checker.report_invalid_syntax (   self)
Check if the syntax is valid.

Definition at line 1391 of file pep8.py.

def roslint.pep8.Checker.run_check (   self,
  check,
  argument_names 
)
Run a check plugin.

Definition at line 1414 of file pep8.py.

Member Data Documentation

roslint.pep8.Checker._ast_checks
private

Definition at line 1358 of file pep8.py.

roslint.pep8.Checker._checker_states
private

Definition at line 1365 of file pep8.py.

roslint.pep8.Checker._io_error
private

Definition at line 1355 of file pep8.py.

roslint.pep8.Checker._logical_checks
private

Definition at line 1357 of file pep8.py.

roslint.pep8.Checker._physical_checks
private

Definition at line 1356 of file pep8.py.

roslint.pep8.Checker.blank_before

Definition at line 1483 of file pep8.py.

roslint.pep8.Checker.blank_lines

Definition at line 1500 of file pep8.py.

roslint.pep8.Checker.checker_state

Definition at line 1424 of file pep8.py.

roslint.pep8.Checker.filename

Definition at line 1363 of file pep8.py.

roslint.pep8.Checker.hang_closing

Definition at line 1361 of file pep8.py.

roslint.pep8.Checker.indent_char

Definition at line 1411 of file pep8.py.

roslint.pep8.Checker.indent_level

Definition at line 1481 of file pep8.py.

roslint.pep8.Checker.line_number

Definition at line 1553 of file pep8.py.

roslint.pep8.Checker.lines

Definition at line 1368 of file pep8.py.

roslint.pep8.Checker.logical_line

Definition at line 1467 of file pep8.py.

roslint.pep8.Checker.max_line_length

Definition at line 1359 of file pep8.py.

roslint.pep8.Checker.multiline

Definition at line 1360 of file pep8.py.

roslint.pep8.Checker.noqa

Definition at line 1468 of file pep8.py.

roslint.pep8.Checker.physical_line

Definition at line 1428 of file pep8.py.

roslint.pep8.Checker.previous_indent_level

Definition at line 1498 of file pep8.py.

roslint.pep8.Checker.previous_logical

Definition at line 1499 of file pep8.py.

roslint.pep8.Checker.report

Definition at line 1388 of file pep8.py.

roslint.pep8.Checker.report_error

Definition at line 1389 of file pep8.py.

roslint.pep8.Checker.tokens

Definition at line 1501 of file pep8.py.

roslint.pep8.Checker.total_lines

Definition at line 1562 of file pep8.py.

roslint.pep8.Checker.verbose

Definition at line 1362 of file pep8.py.


The documentation for this class was generated from the following file:


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed May 1 2019 02:23:59