From: Sri Sanketh U Date: Tue, 18 Jul 2017 15:28:48 +0000 (+0530) Subject: Add WriteGoodLintBear support X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=bdff85dfb528ad3d369a623f79756f16036cc205;p=integration%2Fpackaging%2Fansible-opendaylight.git Add WriteGoodLintBear support Fix readability, inheritance issues Change-Id: Icd6176cea10b5932ee34699a583283a416670486 Signed-off-by: Sri Sanketh U --- diff --git a/.coafile b/.coafile index 4890de1..b008199 100644 --- a/.coafile +++ b/.coafile @@ -1,45 +1,63 @@ -[default] -ignore = .tox/**, .git/**, .gitignore, .gitreview, **.log, - node_modules/**, **.sw?, **.orig, **/.vagrant** - -[git] +[all] +ignore = .tox/**, + .git/**, + .gitignore, + .gitreview, + **.log, + node_modules/**, + **.sw?, + **.orig, + **/.vagrant** + +[all.git] bears = GitCommitBear ignore_length_regex = Signed-off-by, Also-by, Co-authored-by, -[spacing] +[all.spacing] bears = SpaceConsistencyBear use_spaces = True enforce_newline_at_EOF = False files = ** default_actions = SpaceConsistencyBear: ApplyPatchAction -[linelength] +[all.Documentation] +bears = WriteGoodLintBear +files = **.markdown, + **.md, + **.rst +allow_so_beginning = False +allow_there_is = False +allow_cliche_phrases = False + +[all.linelength] bears = LineLengthBear enabled = False max_line_length = 100 -[markdown] +[all.markdown] bears = MarkdownBear -files = **.markdown, **.md +files = **.markdown, + **.md default_actions = MarkdownBear: ApplyPatchAction -[rest] -bears = RSTcheckBear, reSTLintBear +[all.rest] +bears = RSTcheckBear, + reSTLintBear files = **.rst -[yaml] +[all.yaml] bears = YAMLLintBear yamllint_config = .yamllint files = **.yaml, **.yml -[json] +[all.json] bears = JSONFormatBear files = **.json default_actions = JSONFormatBear: ApplyPatchAction -[xml] +[all.xml] bears = XMLBear enabled = False files = **.xml diff --git a/tox.ini b/tox.ini index 249a5df..a5458fe 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,6 @@ deps = nodeenv commands = nodeenv -p - npm install --global dockerfile_lint remark-cli remark-lint + npm install --global dockerfile_lint remark-cli remark-lint write-good python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger coala --non-interactive