Add SpaceConsistencyBear to ShellCheck 60/53160/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 16:54:38 +0000 (11:54 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 16:57:21 +0000 (11:57 -0500)
We weren't linting all shell scripts with the space consistency bear.
This enables that and sets it to 4 space indents.

Change-Id: I9cefdcedef9dc6a5cf700d4472b6f5ae85ba4320
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile
jjb/packaging/include-raw-test-ansible-deb.sh
jjb/packaging/include-raw-test-ansible-rpm.sh

index 8bf8810899ccf30284c98aaeba6223d57287b090..17ba2c49432410c43e2673947e7e0575d5f39b43 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,11 +1,3 @@
-[default]
-bears = SpaceConsistencyBear
-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,
@@ -22,10 +14,12 @@ document_start = True
 yamllint_config = yamllint.conf
 
 [ShellCheck]
-bears = ShellCheckBear
+bears = ShellCheckBear,SpaceConsistencyBear
 files = jenkins-scripts/**/*.sh,
     jjb/**/*.sh,
     scripts/**/*.sh
 ignore = jenkins-scripts/*-local-env.sh,
     jjb/integration/*.sh
 shell = bash
+indent_size = 4
+use_spaces = yeah
index 8f08eb5b6cbbd76b4456e1df90fa1eb9baf8bc81..f77e7806ab154a15bf22f0c7cd5dcf96a8f947fa 100644 (file)
@@ -21,4 +21,4 @@ cd ansible-opendaylight
 sudo ansible-galaxy install -r requirements.yml
 sudo ansible-playbook -i "localhost," -c local examples/deb_repo_install_playbook.yml
 
-# Add more tests
\ No newline at end of file
+# Add more tests
index 48f0e117e437b513a1553ab2e76c94c7ce4d8519..32ee5cd880c652c096f182f334cb1eaf386e075e 100644 (file)
@@ -17,4 +17,4 @@ cd ansible-opendaylight
 sudo ansible-galaxy install -r requirements.yml
 sudo ansible-playbook -i "localhost," -c local examples/odl_6_testing_playbook.yml
 
-# Add more tests
\ No newline at end of file
+# Add more tests