#!/usr/bin/env bash
##
-# @file config-plugins-audit.sh
-# @brief add plugin modules for a github repository
+# @file config-plugins-audit.sh
+# @brief Configuraiton file to maintain audit modules (after completing a build procedure)
# @see https://github.com/nnsuite/TAOS-CI
# @author Geunsik Lim <geunsik.lim@samsung.com>
declare -i idx=-1
###### plugins-base ###############################################################################################
-echo "[MODULE] plugins-base: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-base: Plugin group is a well-maintained collection of plugin modules."
# Please append your plugin modules here.
audit_plugins[++idx]="pr-audit-build-tizen"
echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if Tizen rpm package is successfully generated."
echo "[DEBUG] Current path: $(pwd)."
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
audit_plugins[++idx]="pr-audit-build-ubuntu"
echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if Ubuntu deb package is successfully generated."
echo "[DEBUG] Current path: $(pwd)."
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
-#audit_plugins[++idx]="pr-audit-build-yocto"
-#echo "[DEBUG] The default BUILD_MODE of ${audit_plugins[idx]} is declared with 99 by default in plugins-base folder."
-#echo "[DEBUG] ${audit_plugins[idx]} is started."
-#echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if YOCTO deb package is successfully generated."
-#echo "[DEBUG] Current path: $(pwd)."
-#source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
-# Note that do not append the below "$module_name" because build step is implemented as a built-in module partially
+audit_plugins[++idx]="pr-audit-build-yocto"
+echo "[DEBUG] The default BUILD_MODE of ${audit_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder."
+echo "[DEBUG] ${audit_plugins[idx]} is started."
+echo "[DEBUG] TAOS/${audit_plugins[idx]}: Check if YOCTO deb package is successfully generated."
+echo "[DEBUG] Current path: $(pwd)."
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${audit_plugins[idx]}.sh
###### plugins-good ###############################################################################################
-echo "[MODULE] plugins-base: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-good: Plugin group that follow a writing rule with good quality"
# Please append your plugin modules here.
#!/usr/bin/env bash
##
-# @file config-plugins-format.sh
-# @brief add plugin modules for a github repository
+# @file config-plugins-format.sh
+# @brief Configuration file to maintain format modules (before doing a build procedure)
# @see https://github.com/nnsuite/TAOS-CI
# @author Geunsik Lim <geunsik.lim@samsung.com>
declare -i idx=-1
##################################################################################################################
-echo "[MODULE] plugins-good: Plugin group that is maintained with good quality"
+echo "[MODULE] plugins-good: Plugin group that follow a writing rule with good quality"
# Please append your plugin modules here.
-format_plugins[++idx]="pr-format-doxygen"
+format_plugins[++idx]="pr-format-doxygen-tag"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check a source code consists of required doxygen tags."
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-indent"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with GNU indent"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
#format_plugins[++idx]="pr-format-clang"
# echo "${format_plugins[idx]} is starting."
# echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with clang-format"
-# echo "The current path: $(pwd)."
+# echo "[DEBUG] The current path: $(pwd)."
# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
#format_plugins[++idx]="pr-format-exclusive-vio"
# echo "${format_plugins[idx]} is starting."
# echo "[MODULE] TAOS/${format_plugins[idx]}: Check issue #279. VIO commits should not touch non VIO files."
-# echo "The current path: $(pwd)."
+# echo "[DEBUG] The current path: $(pwd)."
# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-pylint"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check the code formatting style with pylint"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-newline"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check if there is a newline issue in text files"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-rpm-spec"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check if there is incorrect staements in *.spec file"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-file-size"
echo "${format_plugins[idx]} is starting."
echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-cppcheck"
echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check dangerous coding constructs in source codes (*.c, *.cpp) with cppcheck"
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-nobody"
echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check the commit message body"
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-timestamp"
echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check the timestamp of the commit"
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
format_plugins[++idx]="pr-format-executable"
echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check executable bits for .cpp, .c, .hpp, .h, .prototxt, .caffemodel, .txt., .init"
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
-format_plugins[++idx]="pr-hardcoded-path"
+format_plugins[++idx]="pr-format-hardcoded-path"
echo "${format_plugins[idx]} is starting."
-echo "[MODULE] TAOS/${format_plugins[idx]}: Check the file size to not include big binary files"
-echo "The current path: $(pwd)."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check prohibited hardcoded paths (/home/* for now)"
+echo "[DEBUG] The current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
+
+format_plugins[++idx]="pr-format-misspelling"
+echo "${format_plugins[idx]} is starting."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check a misspelled statement in a document file with GNU Aspell"
+echo "[DEBUG] The current path: $(pwd)."
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
+format_plugins[++idx]="pr-format-doxygen-build"
+echo "${format_plugins[idx]} is starting."
+echo "[MODULE] TAOS/${format_plugins[idx]}: Check a doxygen grammar if a doxygen can normally generates source code"
+echo "[DEBUG] The current path: $(pwd)."
+echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh"
+source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${format_plugins[idx]}.sh
##################################################################################################################
-echo "[MODULE] plugins-staging: Plugin group that does not have evaluation and aging test enough"
+echo "[MODULE] plugins-staging: Plugin group that does not have an evaluation and aging test enough"
# Please append your plugin modules here.