Refactor coalafile, add stubs for future tests 32/53932/3
authorDaniel Farrell <dfarrell@redhat.com>
Mon, 27 Mar 2017 21:13:37 +0000 (17:13 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Mon, 27 Mar 2017 21:27:56 +0000 (21:27 +0000)
Also do Coala dep installs in one line for better speed and install
additional dep of MarkdownBear.

Change-Id: Iab9ac746378b9ef4516e94edbadc537b1536a4c7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
.coafile
tox.ini

index 8c18daf36649f01284e82c8692af650d73b55592..9a1f01e4536ab31aa60f1a7a752011fc667633e2 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,42 +1,83 @@
-[Default]
-ignore = .tox/**, .gitignore, .gitreview, .gitmodules, **/provisioning/roles/**, \
-         node_modules/**, ansible/ansible-opendaylight/**, docs/conf.py
-use_spaces = True
+[default]
+ignore = .tox/**, .git/**, .gitignore, .gitreview, .gitmodules,
+    **/provisioning/roles/**, node_modules/**, **.sw?,
+    ansible/ansible-opendaylight/**, puppet/puppet-opendaylight/**,
+    docs/conf.py, **/.vagrant/**, **.box, **postman_collection**,
+    **packer_cache**, **.tar.gz, **.rpm, **.pyc
 
-[DOCS]
-bears = SpaceConsistencyBear, LineLengthBear
-#files = ./**/*.rst
+[spacing]
+bears = SpaceConsistencyBear
+enabled = False
+use_spaces = True
+enforce_newline_at_EOF = False
+files = **
 default_actions = SpaceConsistencyBear: ApplyPatchAction
 
+[linelength]
+bears = LineLengthBear
+enabled = False
+max_line_length = 100
+
+[rest]
+bears = RSTcheckBear, reSTLintBear
+enabled = False
+files = **.rst
+
 [markdown]
 bears = MarkdownBear
-#files = ./**/*.markdown, ./**/*.md
+enabled = False
+files = **.markdown, **.md
 default_actions = MarkdownBear: ApplyPatchAction
 
 [dockerfile]
 bears = DockerfileLintBear
-#files = ./**/Dockerfile
+enabled = False
+files = **Dockerfile
 
 [json]
 bears = JSONFormatBear
-files = ./**/*.json
+files = **.json
 default_actions = JSONFormatBear: ApplyPatchAction
 
-[shellcheck]
+[shell]
 bears = ShellCheckBear
-files = ./**/*.sh
+files = **.sh
 
 [python]
-bears = PyUnusedCodeBear
-files = ./**/*.py
-default_actions = PyUnusedCodeBear: ApplyPatchAction
+bears = PEP8Bear, PyUnusedCodeBear, PyImportSortBear
+files = **.py
+default_actions = PyUnusedCodeBear: ApplyPatchAction,
+    PyImportSortBear: ApplyPatchAction
 
-[autopep8]
-bears = PEP8Bear
-files = ./**/*.py
-default_actions = PEP8Bear: ApplyPatchAction
+[python-hard]
+bears = PyLintBear, PyFlakesBear
+enabled = False
+files = **.py
 
 [yaml]
 bears = YAMLLintBear
 yamllint_config = .yamllint
-files = ./**/*.yaml, ./**/*.yml
+files = **.yaml, **.yml
+
+[ruby]
+bears = RubySyntaxBear, RubySmellBear, RuboCopBear
+files = **.rb
+enabled = False
+
+[puppet]
+bears = PuppetLintBear
+enabled = False
+
+[jinja]
+bears = Jinja2Bear
+files = rpm/specs/opendaylight.spec, deb/templates/**_template**
+
+[git]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+
+[xml]
+bears = XMLBear
+enabled = False
diff --git a/tox.ini b/tox.ini
index 3c6b19e7ba7abfae9dade2a7cf6f673e6b05a114..8e206a12b561626ef4dcbeff81b7bc0f54778685 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -11,8 +11,8 @@ deps =
     nodeenv
 commands =
     nodeenv -p
-    npm install --global dockerfile_lint
-    npm install --global remark-cli
+    npm install --global dockerfile_lint remark-cli remark-lint
+    python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
     coala --non-interactive
 
 [testenv:docs]