Created
November 27, 2014 14:11
-
-
Save mbreit/229d2528604af2f8db37 to your computer and use it in GitHub Desktop.
Emacs: haml-lint checker for flycheck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(flycheck-def-config-file-var flycheck-haml-lintrc haml-lint ".haml-lint.yml" | |
:safe #'stringp) | |
(flycheck-define-checker haml-lint | |
"A haml-lint syntax checker" | |
:command ("haml-lint" | |
(config-file "--config" flycheck-haml-lintrc) | |
source) | |
:error-patterns | |
((warning line-start | |
(file-name) ":" line " [W] " (message) | |
line-end)) | |
:modes (haml-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While this works, it does not respect the working directory, and therefore ignores rubocop configs.