Run M-x magit-diff-flycheck
in a magit-diff buffer to display a
filtered list of Flycheck errors for the added/modified lines only.
Use can also run the command with a prefix which will prompt you for
the scope of the errors, eg. C-u M-x magit-diff-flycheck
.
This is primarily meant to be used on legacy projects where you do not want to see errors for the whole file but only for the added/modified lines.
Available on MELPA.
magit
flycheck
seq
Variable | Notes | Default |
---|---|---|
magit-diff-flycheck-inhibit-message | If non-nil, disable message output while running. | t |
magit-diff-flycheck-default-scope | The default scope for filtering errors. | lines |
magit-diff-flycheck-context | Lines of context for diff when filtering errors. | 0 |
Open up a magit-diff buffer and run M-x magit-diff-flycheck
.