Fix JSON linting and add Linter
[releng/builder.git] / .coafile
index 6802f48afea3349f6b8aee0b5ffdf1252ecf0f0d..8d32fd0851d96ac72c4d30720210daff815f18d8 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,10 +1,16 @@
-[default]
-bears = SpaceConsistencyBear,GitCommitBear
-files = scripts/*
-allow_trailing_whitespace = False
-enforce_newline_at_EOF = True
-indent_size = 4
-use_spaces = yeah
+[GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+    http://,
+    https://
+
+[JSON]
+bears = JSONFormatBear
+files = **/*.json
+ignore = .*/**
+indent_size = 2
 
 [YAML]
 bears = YAMLLintBear
@@ -13,9 +19,12 @@ document_start = True
 yamllint_config = yamllint.conf
 
 [ShellCheck]
-bears = ShellCheckBear
+bears = ShellCheckBear,SpaceConsistencyBear
 files = jenkins-scripts/**/*.sh,
     jjb/**/*.sh,
     scripts/**/*.sh
-ignore = jjb/integration/*.sh
+ignore = jenkins-scripts/*-local-env.sh,
+    jjb/integration/*.sh
 shell = bash
+indent_size = 4
+use_spaces = yeah