Remove coala from common-packer 79/62679/4
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 19 Dec 2019 22:18:47 +0000 (08:18 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 19 Dec 2019 22:18:47 +0000 (08:18 +1000)
Move away from coala since that project refuses to produce any
new release and the version we're using is quite dated at this
point.

Coala does not seem to be working well with prettier pre-commit
hook in place, since prettier is auto-formating the yaml code
to make the code terse which fails the tox verify job.

Issue: RELENG-2641
Change-Id: I8d782822ca87add9108a044fd6e19b1c23686717
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
.coafile [deleted file]
tox.ini

diff --git a/.coafile b/.coafile
deleted file mode 100644 (file)
index 2f3d846..0000000
--- a/.coafile
+++ /dev/null
@@ -1,42 +0,0 @@
-[all]
-ignore = .tox/**,
-    .git/**,
-    .gitignore,
-    .gitreview,
-    .gitmodules,
-    node_modules/**,
-    **.sw?,
-    **.orig
-
-[all.Documentation]
-bears = SpaceConsistencyBear,WriteGoodLintBear
-files = docs/**.rst
-use_spaces = true
-
-[all.GitCommit]
-bears = GitCommitBear
-ignore_length_regex = Signed-off-by,
-    Also-by,
-    Co-authored-by,
-    http://,
-    https://
-
-[JSON]
-bears = JSONFormatBear
-files = templates/**.json,
-    vars/**.json
-indent_size = 2
-
-[all.ShellCheck]
-bears = ShellCheckBear, SpaceConsistencyBear, LineLengthBear
-files = provision/**.sh, ansible-galaxy.sh
-shell = bash
-indent_size = 4
-use_spaces = True
-max_line_length = 80
-
-[YAML]
-bears = YAMLLintBear
-files = provision/**.yaml
-document_start = True
-yamllint_config = .yamllint.conf
diff --git a/tox.ini b/tox.ini
index a3481af..5bff9ee 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,25 +1,9 @@
 [tox]
 minversion = 1.6
 envlist =
-    coala,
     pre-commit
 skipsdist = true
 
-[testenv:coala]
-basepython = python3
-deps =
-    coala
-    coala-bears
-    pygments~=2.3.1
-    # request-2.22.0 does not work with python-3.4.9
-    requests~=2.21.0
-    nodeenv==1.1.2
-commands =
-    nodeenv -p
-    npm install --global write-good
-    python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
-    coala --non-interactive
-
 [testenv:docs]
 basepython = python3
 deps = -rdocs/requirements.txt