flymake-shellcheck icon indicating copy to clipboard operation
flymake-shellcheck copied to clipboard

flymake-shellcheck shouldn't activate when editing RPM .spec files

Open 1player opened this issue 3 years ago • 0 comments

I have added flymake-shellcheck-load as a sh-mode-hook as recommended in the documentation, but that mode is loaded for RPM .spec files as well, and they are not supported by shellcheck.

I've changed my configuration to the following:

(add-hook 'sh-mode-hook (lambda ()
                            (unless (eq sh-shell 'rpm)
                              (flymake-shellcheck-load))))

but perhaps this check should be done by flymake-shellcheck-load, or at least documented in the README.

1player avatar May 04 '22 09:05 1player