JIRA: VAL-10
Tools used to verify code style and correctness.
Usage command: tox coala
This patch needs to be merged before https://gerrit.akraino.org/r/#/c/568/
Change-Id: I9d4d05b13f037f814832eff279c0e410e6a34b08
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
--- /dev/null
+[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
--- /dev/null
+[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