PhpStorm 2019.3 Help

Code Inspections in Dockerfile

This topic lists all PhpStorm code inspections available in Dockerfile.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of PhpStorm settings Ctrl+Alt+S.

Inspection

Description

Default Severity

''ADD''/''COPY'' semantics

This inspection highlights possible problems with arguments of the ADD and COPY commands.

Warning Warning
Wrong number of arguments

This inspection finds commands with wrong or suspicious number of arguments in Dockerfiles and highlights them in the editor.

Error Error
Spacing of ''key=value'' pairs

While it is not exactly specified in the Dockerfile documentation, some combinations of spacing for 'key=value' pairs are not actually allowed.The rules are different for ARG, ENV or LABEL commands. This inspection highlights combinations which are known to be rejected.

Error Error
Last modified: 20 February 2020