From: Cristina Pauna Date: Wed, 24 Apr 2019 07:55:33 +0000 (+0000) Subject: Merge "Add code verification tools" X-Git-Tag: 2.0.0~96 X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=commitdiff_plain;h=e9852ac1d156336faf6c418afe28f2ef172fe406;hp=d8a24b76b0c1cf0c98e47397aa4d6f68ed271951 Merge "Add code verification tools" --- diff --git a/.coafile b/.coafile new file mode 100644 index 0000000..e7f59d0 --- /dev/null +++ b/.coafile @@ -0,0 +1,40 @@ +[all] +ignore = .tox/**, + .git/**, + .gitignore, + .gitreview, + .gitmodules, + **.sw?, + **.orig + +[all.GitCommit] +bears = GitCommitBear +ignore_length_regex = Signed-off-by, + Also-by, + Co-authored-by, + http://, + https:// + +[all.reStructuredText] +bears = SpaceConsistencyBear,WriteGoodLintBear +files = docs/**.rst +use_spaces = true +ignore = .git/**, + .tox/**, + +[all.ShellCheck] +bears = ShellCheckBear,SpaceConsistencyBear +files = **.sh +shell = bash +use_spaces = true + +[all.YAML] +bears = YAMLLintBear +files = **.yaml, **.yml +use_spaces = true +max_line_length = 120 + +[all.Python] +bears = PyLintBear +files = **.py +use_spaces = true diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..f53943c --- /dev/null +++ b/tox.ini @@ -0,0 +1,18 @@ +[tox] +minversion = 1.6 +envlist = + coala, +skipsdist = true +passenv = TOX_WORK_DIR +toxworkdir = {env:TOX_WORK_DIR:/tmp/v} + +[testenv:coala] +basepython = python3 +deps = + coala + coala-bears + nodeenv +commands = + nodeenv -p + npm install --global write-good + coala --non-interactive