diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-28 12:39:10 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-28 12:39:10 +0300 |
commit | af999d3207bf5f4490b31d82a9e732d7b3410ab9 (patch) | |
tree | 99a577c0dc982619ed9451fade05c0651873d92c /include | |
parent | db5d825701198c9e487b50ca05ec680d83176c94 (diff) |
Allow strict code checking for developers
Diffstat (limited to 'include')
-rw-r--r-- | include/consts | 5 | ||||
-rw-r--r-- | include/parameters | 3 | ||||
-rw-r--r-- | include/profiles | 6 |
3 files changed, 12 insertions, 2 deletions
diff --git a/include/consts b/include/consts index 19223a60..6cf9e4bc 100644 --- a/include/consts +++ b/include/consts @@ -58,6 +58,7 @@ unset LANG BINARY_SCAN_FINISHED=0 CHECK=0 CHECK_BINARIES=1 + CHECK_OPTION_ARRAY="" CHKROOTKITBINARY="" CHKCONFIGBINARY="" COLORS=1 @@ -80,6 +81,7 @@ unset LANG DEVELOPER_MODE=0 DISCOVERED_BINARIES="" DOCKER_DAEMON_RUNNING=0 + ECHOCMD="" ERROR_ON_WARNINGS=0 FILEVALUE="" FIND="" @@ -95,6 +97,7 @@ unset LANG HOSTID="" IDS_IPS_TOOL_FOUND=0 IPTABLESBINARY="" + LDAP_CLIENT_CONFIG_FILE="" LINUX_VERSION="" LINUXCONFIGFILE="" LMDBINARY="" @@ -149,6 +152,7 @@ unset LANG PLUGIN_PHASE=0 POSTGRES_RUNNING=0 PRIVILEGED=0 + PROFILES="" PROFILEVALUE="" PSBINARY="ps" REDIS_RUNNING=0 @@ -164,6 +168,7 @@ unset LANG SERVICE_MANAGER="" SETTINGS="" SETTINGS_FILE="" + SET_STRICT=0 SHELL_IS_BUSYBOX=0 SHOW_PROGRAM_DETAILS=1 SHOW_REPORT=1 diff --git a/include/parameters b/include/parameters index 219528fa..9f193c62 100644 --- a/include/parameters +++ b/include/parameters @@ -122,8 +122,7 @@ SHOW_TOOL_TIPS=0 QUIET=1 SHOW_PROGRAM_DETAILS=0 - shift - HELPER_PARAMS="$1 $2" + shift; HELPER_PARAMS="$@" break ;; diff --git a/include/profiles b/include/profiles index 5130397b..f5c94370 100644 --- a/include/profiles +++ b/include/profiles @@ -254,6 +254,12 @@ AddSetting "skip-upgrade-test" "${SKIP_UPGRADE_TEST}" "Skip upgrade test" ;; + # Set strict mode for development and quality purposes + strict) + FIND=`echo "${VALUE}" | egrep "^(1|true|yes)"` && SET_STRICT=1 + AddSetting "strict" "${SET_STRICT}" "Perform strict test of scripts" + ;; + # Define what kind of scan we are performing test_scan_mode | test-scan-mode) if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi |