Cleanup Coala config 99/5599/1
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Jul 2017 21:43:16 +0000 (17:43 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Wed, 19 Jul 2017 21:43:16 +0000 (17:43 -0400)
* Use new inheritance semantics
* Add ignores so checks run faster
* Use cleaner multi-dir regexes

Change-Id: I18e0fa2b3033c658a297cd71e368f0e272b081b0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
.coafile

index 4c0ea04..b2c13db 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,4 +1,14 @@
-[GitCommit]
+[all]
+ignore = .tox/**,
+    .git/**,
+    .gitignore,
+    .gitreview,
+    .gitmodules,
+    node_modules/**,
+    **.sw?,
+    **.orig
+
+[all.GitCommit]
 bears = GitCommitBear
 ignore_length_regex = Signed-off-by,
     Also-by,
@@ -6,35 +16,27 @@ ignore_length_regex = Signed-off-by,
     http://,
     https://
 
-[Groovy]
+[all.Groovy]
 bears = SpaceConsistencyBear
-files = **/*.groovy
-ignore = .git/**,
-    .tox/**
+files = **.groovy
 indent_size = 4
 use_spaces = true
 
-[MarkDown]
+[all.MarkDown]
 bears = MarkdownBear,SpaceConsistencyBear,WriteGoodLintBear
-files = **/*.md, **/*.markdown
-ignore = .git/**,
-    .tox/**
+files = **.md, **.markdown
 use_spaces = true
 
-[ShellCheck]
+[all.ShellCheck]
 bears = ShellCheckBear,SpaceConsistencyBear
-files = **/*.sh
-ignore = .git/**,
-    .tox/**
+files = **.sh
 shell = bash
 indent_size = 4
 use_spaces = yeah
 
-[YAML]
+[all.YAML]
 bears = YAMLLintBear
-files = **/*.yaml
-ignore = .git/**,
-    .tox/**
+files = **.yaml
 document_start = True
 yamllint_config = yamllint.conf