Docker

Docker

Made by DeepSource

Unquoted literal string detected DOK-SC2140

Bug risk
Major

This warning is triggered when an unquoted literal string is found suspiciously sandwiched between two double quoted strings.

Bad Practice

echo "<img src="foo.png" />" > file.html

or

export "var"="42"

Recommended

echo "<img src=\"foo.png\" />" > file.html

or

export "var=42"

This usually indicates one of: - Quotes that were supposed to be nested, and therefore need to be escaped (like the <img> example) - Quotes that are just plain unnecessary (like the export example).