Skip to content

Commit

Permalink
Coala command: use --limit-files
Browse files Browse the repository at this point in the history
Uses `--limit-files` instead of `--files`.  Also, additional line-start
and line-end regexp patterns.
  • Loading branch information
fleimgruber committed Jul 22, 2017
1 parent 64cadb4 commit 0fd5944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ bears = GitCommitBear

[python]
bears = PEP8Bear
files = **.py
8 changes: 4 additions & 4 deletions flycheck-coala.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
(flycheck-define-checker coala
"A checker using coala.
See URL `https://coala.io'."
:command ("coala" "--format" "{line}:{column}:{severity_str}:{message}" "--find-config" "--files" source)
:error-patterns ((error (or "None" line) ":" (or "None" column) ":MAJOR:" (message))
(warning (or "None" line) ":" (or "None" column) ":NORMAL:" (message))
(info (or "None" line) ":" (or "None" column) ":INFO:" (message)))
:command ("coala" "--format" "{line}:{column}:{severity_str}:{message}" "--find-config" "--limit-files" source-original)
:error-patterns ((error line-start (or "None" line) ":" (or "None" column) ":MAJOR:" (message) line-end)
(warning line-start (or "None" line) ":" (or "None" column) ":NORMAL:" (message) line-end)
(info line-start (or "None" line) ":" (or "None" column) ":INFO:" (message) line-end))
:modes (c-mode
csharp-mode
c++-mode
Expand Down

0 comments on commit 0fd5944

Please sign in to comment.