X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=.coafile;h=95a58d845cdc6d45ebe2949524f5d6c440fe096b;hb=ec49fa99f53c8b04af5d30663943a5e6739cad81;hp=b44805c1c9d6b1a70d3e013eedcca33072a5b2f2;hpb=f7f242b1e2d57f95c35cf4ef9e764aafd0482331;p=integration%2Fpackaging.git diff --git a/.coafile b/.coafile index b44805c..95a58d8 100644 --- a/.coafile +++ b/.coafile @@ -1,40 +1,113 @@ -[Default] -ignore = .tox/**, .gitignore, .gitreview, .gitmodules, **/provisioning/roles/** -use_spaces = True +[all] +ignore = .tox/**, + .git/**, + .gitignore, + .gitreview, + **/provisioning/roles/**, + node_modules/**, + **.sw?, + **.orig, + ansible/ansible-opendaylight/**, + puppet/puppet-opendaylight/**, + docs/conf.py, + **/.vagrant/**, + **.box, + **postman_collection**, + **packer_cache**, + **.tar.gz, + **.zip, + **.rpm, + **.pyc, + packages/deb/templates/rules_template, + packages/deb/opendaylight**, + packages/cache/distribution-karaf-**, + packages/cache/karaf-** -[DOCS] -bears = SpaceConsistencyBear, LineLengthBear -files = ./**/*.rst +[all.spacing] +bears = SpaceConsistencyBear +use_spaces = True +enforce_newline_at_EOF = False +files = ** default_actions = SpaceConsistencyBear: ApplyPatchAction -[markdown] +[all.linelength] +bears = LineLengthBear +enabled = False +max_line_length = 100 + +[all.markdown] bears = MarkdownBear -files = ./**/*.markdown, ./**/*.md +files = **.markdown, + **.md default_actions = MarkdownBear: ApplyPatchAction -[dockerfile] +[all.dockerfile] bears = DockerfileLintBear -files = ./**/Dockerfile +files = **Dockerfile -[json] +[all.json] bears = JSONFormatBear -files = ./**/*.json +files = **.json default_actions = JSONFormatBear: ApplyPatchAction -[shellcheck] +[all.shell] bears = ShellCheckBear -files = ./**/*.sh +shell = bash +files = **.sh -[python] -bears = PyUnusedCodeBear -files = ./**/*.py -default_actions = PyUnusedCodeBear: ApplyPatchAction +[all.python] +bears = PEP8Bear, + PyUnusedCodeBear, + PyImportSortBear +files = **.py +default_actions = PyUnusedCodeBear: ApplyPatchAction, + PyImportSortBear: ApplyPatchAction -[autopep8] -bears = PEP8Bear -files = ./**/*.py -default_actions = PEP8Bear: ApplyPatchAction +[all.python-hard] +bears = PyLintBear, + PyFlakesBear +enabled = False +files = **.py -[yaml] +[all.Documentation] +bears = WriteGoodLintBear +files = **.markdown, + **.md, + **.rst +allow_so_beginning = False +allow_there_is = False +allow_cliche_phrases = False + +[all.yaml] bears = YAMLLintBear -files = ./**/*yaml, ./**/*.yml +yamllint_config = .yamllint +files = **.yaml, + **.yml + +[all.ruby] +bears = RubySyntaxBear, + RubySmellBear, + RuboCopBear +files = **.rb +enabled = False + +[all.puppet] +bears = PuppetLintBear +enabled = False + +[all.jinja] +bears = Jinja2Bear +files = packages/rpm/specs/opendaylight.spec, + packages/deb/templates/**_template** + +[all.git] +bears = GitCommitBear +ignore_length_regex = Signed-off-by, + Also-by, + Co-authored-by, + http://, + https:// + +[all.xml] +bears = XMLBear +files = **.xml