ComplianceAsCode/content

View on GitHub

Showing 1,093 of 1,093 total issues

Double quote to prevent globbing and word splitting.
Open

pushd $PAGES_DIR
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

cp -rf build/tables $PAGES_DIR
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

sed -i "/<.*select.*idref=\"$rule/s/selected=\"true\"/selected=\"false\"/g" $DS || exit 1
Severity: Minor
Found in tests/ds_unselect_rules.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

. $SHARED/utils.sh
Severity: Minor
Found in tests/shared/auditd_utils.sh by shellcheck

popd references arguments, but none are ever passed.
Open

popd () {

Double quote to prevent globbing and word splitting.
Open

echo "<!DOCTYPE html>" > $STATS_DIR/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Consider using { cmd1; cmd2; } >> file instead of individual redirects.
Open

echo '<html lang="en">' >> index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Use popd "$@" if function's $1 should mean script's $1.
Open

popd
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Don't use variables in the printf format string. Use printf "..%s.." "$foo".
Open

printf "_____\nComparing logfile $log_number to baseline 0...\n"
Severity: Minor
Found in utils/build_profiler.sh by shellcheck

Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
Open

PACKAGES="$@"
Severity: Minor
Found in tests/shared/utils.sh by shellcheck

You need a space after the '{'.
Open

{{% if 'ubuntu' in product %}}
Severity: Minor
Found in tests/shared/grub2.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

echo "<ul>" >> $STATS_DIR/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

utils/gen_html_guides_index.py . $PAGES_DIR/guides/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

if [ -d build/$product ]; then
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Quote this to prevent word splitting.
Open

content_cmakelists="$(realpath $(dirname ${BASH_SOURCE[0]}))/../CMakeLists.txt"
Severity: Minor
Found in utils/version.sh by shellcheck

Don't use variables in the printf format string. Use printf "..%s.." "$foo".
Open

printf "Usage: $(basename $0) <DATASTREAM> <UNSELECT_LIST_FILE>
Severity: Minor
Found in tests/ds_unselect_rules.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

cp $DS /tmp || exit 1
Severity: Minor
Found in tests/ds_unselect_rules.sh by shellcheck

You need a space after the '{'.
Open

{{% else %}}
Severity: Minor
Found in tests/shared/grub2.sh by shellcheck

You need a space after the '{'.
Open

{{% if 'sle' in product %}}

You need a space after the '{'.
Open

{{% endif %}}
Severity
Category
Status
Source
Language