The Understand Python API gives scripts access to everything Understand knows about your code — entities, references, metrics, and dependencies — and powers custom checks, graphs, and reports.
ViolationNote#
- class understand.ViolationNote#
Bases:
objectCodeCheck plugin violation note object
Violation notes are returned from
CheckViolation.add_note. Use the note object to addhighlights.Methods Summary
Add a highlight associated with this violation note.
Methods Documentation
- add_highlight(line, column, end_line, end_column) None#
Add a highlight associated with this violation note.
- Parameters:
line (int) – the first line in the range of text
column (int) – the first column in the range of text
end_line (int) – the last line in the range of text
end_column (int) – the last column in the range of text
- Return type:
None