eric5.UtilitiesPython2.CodeStyleChecker

Class implementing the PEP 8 checker for Python2.

Global Attributes

None

Classes

CodeStyleReport Class implementing a special report to be used with our dialog.

Functions

None


CodeStyleReport

Class implementing a special report to be used with our dialog.

Derived from

pep8.BaseReport

Class Attributes

docType
filename
hang_closing
ignore
max_line_length
repeat
select

Class Methods

None

Methods

CodeStyleReport Constructor
error_args Public method to collect the error messages.

Static Methods

None

CodeStyleReport (Constructor)

CodeStyleReport(options)

Constructor

options
options for the report (optparse.Values)

CodeStyleReport.error_args

error_args(line_number, offset, code, check, *args)

Public method to collect the error messages.

line_number
line number of the issue (integer)
offset
position within line of the issue (integer)
code
message code (string)
check
reference to the checker function (function)
args
arguments for the message (list)
Returns:
error code (string)
Up