From: Sri Sanketh U Date: Tue, 18 Jul 2017 15:22:34 +0000 (+0530) Subject: Add WriteGoodLintBear support X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F60540%2F2;p=integration%2Fpackaging%2Fpuppet-opendaylight.git Add WriteGoodLintBear support Fix readability, inheritance issues in coafile Change-Id: Ibf9bcef436b2c80ee48cdbcbb05a490dccc6651a Signed-off-by: Sri Sanketh U --- diff --git a/.coafile b/.coafile index 48035e0..832a750 100644 --- a/.coafile +++ b/.coafile @@ -1,54 +1,80 @@ -[default] -ignore = .tox/**, .git/**, .gitignore, .gitreview, **.log, - node_modules/**, **.sw?, **.orig, **/.vagrant**, pkg/**, - .bundle/**, junit/**, log/**, spec/fixtures/modules/** +[all] +ignore = .tox/**, + .git/**, + .gitignore, + .gitreview, + **.log, + node_modules/**, + **.sw?, + **.orig, + **/.vagrant**, + pkg/**, + .bundle/**, + junit/**, + log/**, + spec/fixtures/modules/** -[git] +[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.linelength] bears = LineLengthBear enabled = False max_line_length = 100 -[ruby] -bears = RubySyntaxBear, RubySmellBear, RuboCopBear +[all.Documentation] +bears = WriteGoodLintBear +files = **.markdown, + **.md, + **.rst +allow_so_beginning = False +allow_there_is = False +allow_cliche_phrases = False +allow_repeated_words = False + +[all.ruby] +bears = RubySyntaxBear, + RubySmellBear, + RuboCopBear files = **.rb enabled = False -[puppet] +[all.puppet] bears = PuppetLintBear enabled = False -[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 +files = **.yaml, + **.yml -[json] +[all.json] bears = JSONFormatBear files = **.json default_actions = JSONFormatBear: ApplyPatchAction -[xml] +[all.xml] bears = XMLBear files = **.xml diff --git a/tox.ini b/tox.ini index 9bce091..697522f 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