From: Thanh Ha Date: Thu, 27 Jul 2017 20:36:15 +0000 (-0400) Subject: Add Coala Linting X-Git-Tag: v0.1.0~69 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=8992312ce06ecc4643c40114f91de617e6bc1507;p=releng%2Fcommon-packer.git Add Coala Linting Change-Id: Ie729bb6d22c5ff3e20c938e157914239ae398665 Signed-off-by: Thanh Ha --- diff --git a/.coafile b/.coafile new file mode 100644 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 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 +