Add Coala Linting 54/5654/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 27 Jul 2017 20:36:15 +0000 (16:36 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 27 Jul 2017 20:42:09 +0000 (16:42 -0400)
Change-Id: Ie729bb6d22c5ff3e20c938e157914239ae398665
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile [new file with mode: 0644]
tox.ini [new file with mode: 0644]

diff --git a/.coafile b/.coafile
new file mode 100644 (file)
index 0000000..09216c3
--- /dev/null
+++ b/.coafile
@@ -0,0 +1,30 @@
+[all]
+ignore = .tox/**,
+    .git/**,
+    .gitignore,
+    .gitreview,
+    .gitmodules,
+    node_modules/**,
+    **.sw?,
+    **.orig
+
+[all.GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+    http://,
+    https://
+
+[all.MarkDown]
+bears = MarkdownBear,SpaceConsistencyBear,WriteGoodLintBear
+files = **.md, **.markdown
+use_spaces = true
+
+[all.ShellCheck]
+bears = ShellCheckBear,SpaceConsistencyBear
+files = **.sh
+shell = bash
+indent_size = 4
+use_spaces = yeah
+
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..2ac4645
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+minversion = 1.6
+envlist = coala
+skipsdist = true
+
+[testenv:coala]
+basepython = python3
+deps =
+    coala
+    coala-bears
+    # Markdown lint requires nodejs
+    nodeenv
+commands =
+    nodeenv -p
+    npm install --global remark-cli remark-lint write-good
+    python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
+    coala --non-interactive
+