From 873fa677f50b7fb082d002622ae829227c3ef36d Mon Sep 17 00:00:00 2001 From: apcraig Date: Tue, 29 Nov 2022 16:28:37 -0700 Subject: [PATCH 1/2] Add tab checker in source code to github actions --- .github/workflows/test-icepack.yml | 14 ++++++++++++++ columnphysics/icepack_intfc.F90 | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-icepack.yml b/.github/workflows/test-icepack.yml index fe8dc1946..b335d2cb2 100644 --- a/.github/workflows/test-icepack.yml +++ b/.github/workflows/test-icepack.yml @@ -73,6 +73,20 @@ jobs: ln -s ${GITHUB_WORKSPACE}/../Icepack ${HOME}/icepack # ls -al ${HOME}/ # ls -al ${GITHUB_WORKSPACE}/ + - name: check for tabs + run: | + cd $HOME/icepack + set cnt = 0 + set ffiles = `find -P columnphysics configuration/driver -iname "*.f*"` + set cfiles = `find -P columnphysics configuration/driver -iname "*.c*"` + foreach file ($ffiles $cfiles) + set fcnt = `sed -n '/\t/p' $file | wc -l` + @ cnt = $cnt + $fcnt + if ($fcnt > 0) then + echo "TAB found: $fcnt $file" + endif + end + exit $cnt - name: setup conda env shell: /bin/bash {0} run: | diff --git a/columnphysics/icepack_intfc.F90 b/columnphysics/icepack_intfc.F90 index 9578e83c3..ac1666632 100644 --- a/columnphysics/icepack_intfc.F90 +++ b/columnphysics/icepack_intfc.F90 @@ -26,7 +26,7 @@ module icepack_intfc - use icepack_kinds, only: icepack_char_len => char_len + use icepack_kinds, only: icepack_char_len => char_len use icepack_kinds, only: icepack_char_len_long => char_len_long use icepack_kinds, only: icepack_log_kind => log_kind use icepack_kinds, only: icepack_int_kind => int_kind From 6d20b5427ac89ba1e76c55e8e7690eba1ccc29aa Mon Sep 17 00:00:00 2001 From: apcraig Date: Tue, 29 Nov 2022 16:35:18 -0700 Subject: [PATCH 2/2] remove tab --- columnphysics/icepack_intfc.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/columnphysics/icepack_intfc.F90 b/columnphysics/icepack_intfc.F90 index ac1666632..9578e83c3 100644 --- a/columnphysics/icepack_intfc.F90 +++ b/columnphysics/icepack_intfc.F90 @@ -26,7 +26,7 @@ module icepack_intfc - use icepack_kinds, only: icepack_char_len => char_len + use icepack_kinds, only: icepack_char_len => char_len use icepack_kinds, only: icepack_char_len_long => char_len_long use icepack_kinds, only: icepack_log_kind => log_kind use icepack_kinds, only: icepack_int_kind => int_kind