ComplianceAsCode/content

View on GitHub

Showing 1,092 of 1,092 total issues

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

Use find instead of ls to better handle non-alphanumeric filenames.
Open

test -n "$public_key" || public_key=$(ls "$HOME"/.ssh/*.pub | head -n 1)
Severity: Minor
Found in tests/build_test_container.sh by shellcheck

You need a space after the '{'.
Open

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

This } is literal. Check expression (missing ;/\n?) or quote it.
Open

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

Couldn't parse this brace group.
Open

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

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

echo "<h4>Product: ${product}</h4>" >> index.html

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

Double quote to prevent globbing and word splitting.
Open

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

Double quote to prevent globbing and word splitting.
Open

echo "<li><a href=\"$product/product-statistics/statistics.html\">Product Statistics</a></li>" >> $STATS_DIR/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

pushd $PAGES_DIR
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

To read lines rather than words, pipe/redirect to a 'while read' loop.
Open

for rule in $(cat $UNSELECT_LIST); do
Severity: Minor
Found in tests/ds_unselect_rules.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

for rule in $(cat $UNSELECT_LIST); do
Severity: Minor
Found in tests/ds_unselect_rules.sh by shellcheck

Can't follow non-constant source. Use a directive to specify location.
Open

. $SHARED/utils.sh
Severity: Minor
Found in tests/shared/auditd_utils.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

Double quote to prevent globbing and word splitting.
Open

umount -l ${path}
Severity: Minor
Found in tests/shared/partition.sh by shellcheck

This } is literal. Check expression (missing ;/\n?) or quote it.
Open

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

Double quote to prevent globbing and word splitting.
Open

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

Double quote to prevent globbing and word splitting.
Open

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

Double quote to prevent globbing and word splitting.
Open

echo "<h1>Statistics</h1>" >> $STATS_DIR/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck
Severity
Category
Status
Source
Language