Skip to content

Instantly share code, notes, and snippets.

@mbreit
Created November 27, 2014 14:11
Show Gist options
  • Save mbreit/229d2528604af2f8db37 to your computer and use it in GitHub Desktop.
Save mbreit/229d2528604af2f8db37 to your computer and use it in GitHub Desktop.
Emacs: haml-lint checker for flycheck
(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))
@rposborne
Copy link

While this works, it does not respect the working directory, and therefore ignores rubocop configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment