diff options
-rwxr-xr-x | Checkstyle/checkstyle | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/Checkstyle/checkstyle b/Checkstyle/checkstyle deleted file mode 100755 index 6ce8be9..0000000 --- a/Checkstyle/checkstyle +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -################################################################################ -# -# Author: Alejandro Colomar Andrés -# -# This script checks the style in all files of type (.c .cpp .h .hpp) in the -# selected dirs. -# - - -################################################################################ -# variables # -################################################################################ -dirs=( - ../src/ - ../inc/ - ../stm32l4-modules/ - ../libalx/ -) - - -################################################################################ -# functions # -################################################################################ -check_style() -{ - - ./checkpatch.pl --show-types --no-tree -f $1 \ - --ignore SPDX_LICENSE_TAG,IF_0,SPACING,BRACKET_SPACE -} - -find_source_files() -{ - - source_files=$(find $1 -type f \( -iname \*.c -o -iname \*.h -o -iname \*.cpp -o -iname \*.hpp \)) -} - - -################################################################################ -# main # -################################################################################ -for i in ${dirs[*]} -do - find_source_files ${i} - - for j in ${source_files} - do - check_style ${j} - done -done - - -################################################################################ -# end of file # -################################################################################ |