MCPcopy Create free account
hub / github.com/astral-sh/ruff / errors

Method errors

crates/ruff_python_parser/src/lib.rs:406–408  ·  view source on GitHub ↗

Returns a list of syntax errors found during parsing.

(&self)

Source from the content-addressed store, hash-verified

404
405 /// Returns a list of syntax errors found during parsing.
406 pub fn errors(&self) -> &[ParseError] {
407 &self.errors
408 }
409
410 /// Returns a list of version-related syntax errors found during parsing.
411 pub fn unsupported_syntax_errors(&self) -> &[UnsupportedSyntaxError] {

Callers 9

formatted_fileFunction · 0.45
test_valid_syntaxFunction · 0.45
test_invalid_syntaxFunction · 0.45
parser_quick_testFunction · 0.45
check_pathFunction · 0.45
lint_fixFunction · 0.45
test_contentsFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_valid_syntaxFunction · 0.36
test_invalid_syntaxFunction · 0.36
parser_quick_testFunction · 0.36
test_contentsFunction · 0.36