flymake-shellcheck
flymake-shellcheck copied to clipboard
flymake-shellcheck shouldn't activate when editing RPM .spec files
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.