ComplianceAsCode/content

View on GitHub

Showing 1,093 of 1,093 total issues

Double quote to prevent globbing and word splitting.
Open

yum install -y $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

popd references arguments, but none are ever passed.
Open

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

Double quote to prevent globbing and word splitting.
Open

mkdir -p $PAGES_DIR
Severity: Minor
Found in utils/generate_html_pages.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

mkdir -p $STATS_DIR/$product
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

echo "<li><a href=\"$product/profile-statistics/statistics.html\">Profile 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

echo "</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

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

if ! [[ "$count" =~ ^[0-9]+$ ]] || [ $count -eq 0 ]; then

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

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

content_cmakelists="$(realpath $(dirname ${BASH_SOURCE[0]}))/../CMakeLists.txt"
Severity: Minor
Found in utils/version.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

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

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

{{% else %}}
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 "<h4>Product: ${product}</h4>" >> $STATS_DIR/index.html
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

cp -rf build/$product/profile-statistics $STATS_DIR/$product/profile-statistics
Severity: Minor
Found in utils/generate_html_pages.sh by shellcheck
Severity
Category
Status
Source
Language