Improve Coala linting, add section stubs/ignores 54/62554/1
authorDaniel Farrell <dfarrell@redhat.com>
Mon, 10 Jul 2017 22:05:52 +0000 (18:05 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 1 Sep 2017 15:38:41 +0000 (15:38 +0000)
* Setup proper ignore inheritance with generic rules
* Ignore target dir, causing failures after building a distro
* Remove Python section as there's no Python code
* Add shell, spacing and XML sections but disable until errors fixed

Change-Id: I419abd5d992a1638757399c8c6076a9b309aa323
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
(cherry picked from commit d9ca49923e5b89a3a1c38ebba9b3a8661f2154ba)

.coafile

index 6e9dfd7801774736016431e0b90d76a6be4f6d20..7c1d7d7d5e98192ffb0dabb652d3045a3efd1a1e 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,3 +1,7 @@
+[all]
+ignore = .tox/**, .git/**, .gitignore, .gitreview, **.sw?, **.orig,
+         karaf/target/**
+
 [GitCommit]
 bears = GitCommitBear
 ignore_length_regex = Signed-off-by,
@@ -6,8 +10,23 @@ ignore_length_regex = Signed-off-by,
     http://,
     https://
 
-[Python]
-bears = PEP8Bear
-files = **/*.py
-ignore = .*/**
-max_line_length = 120
+[all.spacing]
+bears = SpaceConsistencyBear
+# TODO: Enable this and fix errors
+enabled = False
+use_spaces = True
+enforce_newline_at_EOF = False
+files = **
+# default_actions = SpaceConsistencyBear: ApplyPatchAction
+
+[all.shell]
+bears = ShellCheckBear
+# TODO: Enable this and fix errors
+enabled = False
+files = **.sh
+
+[all.xml]
+bears = XMLBear
+# TODO: Enable this and fix errors
+enabled = False
+files = **.xml