Skip to content

Instantly share code, notes, and snippets.

@pao
Last active August 29, 2015 14:06
Show Gist options
  • Save pao/e65029bf88650e592929 to your computer and use it in GitHub Desktop.
Save pao/e65029bf88650e592929 to your computer and use it in GitHub Desktop.
(flycheck-define-checker julia-lint
"A Julia syntax checker using Lint.jl."
:command ("julia" "-e"
"using Lint; lintfile(ARGS[1])" source-inplace)
:error-patterns
((info line-start
(zero-or-more blank)
(file-name) " "
(one-or-more (not digit))
line " INFO" (one-or-more blank) (message) line-end)
(warning line-start
(zero-or-more blank)
(file-name) " "
(one-or-more (not digit))
line " WARN" (one-or-more blank) (message) line-end)
(error line-start
(zero-or-more blank)
(file-name) " "
(one-or-more (not digit))
line " " (or "ERROR" "FATAL") (one-or-more blank) (message) line-end))
:modes julia-mode)
(add-to-list 'flycheck-checkers 'julia-lint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment