(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-warningprocedureConstruct a lint-warning struct.
lint-warning?procedureTest if a value is a lint-warning struct.
lint-warning-checkprocedureGet the check field of a lint-warning struct.
lint-warning-severityprocedureGet the severity field of a lint-warning struct.
lint-warning-messageprocedureGet the message field of a lint-warning struct.
lint-warning-line0procedureGet the line0 field of a lint-warning struct.
lint-warning-char0procedureGet the char0 field of a lint-warning struct.
lint-warning-lengthprocedureGet the length field of a lint-warning struct.
lint-warning-dataprocedureGet the data field of a lint-warning struct.
lint-codeprocedureRun lint checks on source code. CHECKS is a list of names or '() / ("all") for all. Returns a list of lint-warning.