Skip to content

linter

linter module contains Linter class implementation.

Linter

Linter class implements high level linting API for Gerber files.

__init__

__init__(rules: list[Rule]) -> None

Initialize the Linter object.

lint

lint(ast: File) -> Iterable[RuleViolation]

Lint the AST and return a object containing all violations.