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.  coafile: Ignore for gitmate CI and
include for ert.
  • Loading branch information
fleimgruber committed Apr 25, 2018
1 parent 64cadb4 commit 7f60105
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .coafile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[Default]
enabled = True

[commit]
bears = GitCommitBear

[python]
bears = PEP8Bear
files = **.py
ignore = test/resources/language/*.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
3 changes: 3 additions & 0 deletions test/resources/language/.coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[python]
bears = PEP8Bear
files = *.py

0 comments on commit 7f60105

Please sign in to comment.