sigildocs

(sigil lsp lint)

(sigil lsp lint) - Lint warnings with source positions.

Adapted from (sigil mcp lint), but carries 0-based line/char ranges so warnings can be reported as LSP Diagnostics.

Exports

lint-warningprocedure

Construct a lint-warning struct.

lint-warning?procedure

Test if a value is a lint-warning struct.

Get the check field of a lint-warning struct.

Get the severity field of a lint-warning struct.

Get the message field of a lint-warning struct.

Get the line0 field of a lint-warning struct.

Get the char0 field of a lint-warning struct.

Get the length field of a lint-warning struct.

Get the data field of a lint-warning struct.

lint-codeprocedure

Run lint checks on source code. CHECKS is a list of names or '() / ("all") for all. Returns a list of lint-warning.