Skip to content

Allow requesting try_lint() to only run linters supporting stdin#907

Open
dtor wants to merge 1 commit intomfussenegger:masterfrom
dtor:stdin-only
Open

Allow requesting try_lint() to only run linters supporting stdin#907
dtor wants to merge 1 commit intomfussenegger:masterfrom
dtor:stdin-only

Conversation

@dtor
Copy link
Contributor

@dtor dtor commented Feb 10, 2026

When hooking linting to an event like InsertLeave, running linters that only work with content that already made to the storage does not make sense.

Enhance try_lint() to accept an optional boolean flag stdin_only in its set of options. When this flag is present and set to "true" try_lint() will skip all linters that do not advertise stdin support (via linter.stdin).

When hooking linting to an event like InsertLeave, running linters that
only work with content that already made to the storage does not make
sense.

Enhance try_lint() to accept an optional boolean flag stdin_only in its
set of options. When this flag is present and set to "true" try_lint()
will skip all linters that do not advertise stdin support (via
linter.stdin).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant