summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <Colomar.6.4.3@GMail.com>2019-06-04 00:44:20 +0200
committerGitHub <noreply@github.com>2019-06-04 00:44:20 +0200
commit284e7b14a7db6f06358a12144092c919d1621a8f (patch)
tree517e833b9ad15df6c379093e5ab5af1985185c26
parent000cf76ce06b05b8e9fc2ecb6ed5a9b810ab1b0e (diff)
Delete checkstyle
-rwxr-xr-xCheckstyle/checkstyle55
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 #
-################################################################################