Update with suggestions from 60434
[releng/builder.git] / .coafile
index d5300498e8033308031eef9e219015cd4582df57..c295a7cbb3628c9aa1f5f3c9a85d16d5ff3876d7 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,25 +1,54 @@
-[default]
-bears = SpaceConsistencyBear,GitCommitBear
-files = scripts/*
-allow_trailing_whitespace = False
-enforce_newline_at_EOF = True
+[all]
+ignore = .**
+
+[all.Documentation]
+bears = WriteGoodLintBear
+files = **.markdown,
+    **.md,
+    **.rst
+allow_so_beginning = False
+allow_there_is = False
+allow_cliche_phrases = False
+
+[all.GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+    http://,
+    https://
+
+[all.JSON]
+bears = JSONFormatBear
+files = **.json
+ignore = .**
+indent_size = 2
+
+[all.ShellCheck]
+bears = ShellCheckBear,
+    SpaceConsistencyBear
+files = **.sh
+ignore = .git/**,
+    .tox/**,
+    jenkins-scripts/*-local-env.sh,
+    jjb/integration/include-raw-integration-deploy-controller-offline.sh,
+    jjb/integration/include-raw-integration-deploy-controller-run-test.sh,
+    jjb/integration/include-raw-integration-deploy-controller-verify.sh,
+    jjb/integration/include-raw-integration-deploy-openstack-run-test.sh,
+    jjb/integration/include-raw-integration-distribution-check.sh,
+    jjb/integration/include-raw-integration-get-bundle-vars.sh,
+    jjb/integration/include-raw-integration-list-jobs.sh,
+    jjb/integration/include-raw-integration-multipatch-distribution-test.sh,
+    jjb/integration/include-raw-integration-replace-block-text.sh,
+    jjb/integration/include-raw-integration-start-cluster-run-test.sh,
+    jjb/integration/include-raw-integration-replace-block-text.sh,
+    jjb/integration/include-raw-integration-start-cluster-run-test.sh
+shell = bash
 indent_size = 4
 use_spaces = yeah
 
-[YAML]
+[all.YAML]
 bears = YAMLLintBear
 files = jjb/**/*.yaml,openstack-hot/**/*.yaml
 document_start = True
 yamllint_config = yamllint.conf
-
-[ShellCheck]
-bears = ShellCheckBear
-files = jenkins-scripts/**/*.sh,
-    jjb/autorelease/**/*.sh,
-    jjb/docs/**/*.sh,
-    jjb/netvirt/**/*.sh,
-    jjb/neutron/**/*.sh,
-    jjb/opflex/**/*.sh,
-    jjb/ovsdb/**/*.sh,
-    scripts/**/*.sh
-shell = bash