diff --git a/frontend/dockerfile/dockerfile_lint_test.go b/frontend/dockerfile/dockerfile_lint_test.go index be42a14394f9..c2b998dd65e6 100644 --- a/frontend/dockerfile/dockerfile_lint_test.go +++ b/frontend/dockerfile/dockerfile_lint_test.go @@ -312,7 +312,7 @@ COPY $bar . RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$bar'", + Detail: "Usage of undefined variable $bar", Level: 1, Line: 6, }, @@ -322,7 +322,7 @@ COPY $bar . RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$foo'", + Detail: "Usage of undefined variable $foo", Level: 1, Line: 3, }, @@ -330,7 +330,7 @@ COPY $bar . RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$bar'", + Detail: "Usage of undefined variable $bar", Level: 1, Line: 6, }, @@ -374,7 +374,7 @@ copy Dockerfile . RuleName: "FromAsCasing", Description: "The 'as' keyword should match the case of the 'from' keyword", URL: "https://docs.docker.com/go/dockerfile/rule/from-as-casing/", - Detail: "'as' and 'FROM' keywords' casing do not match", + Detail: "'as' and 'FROM' keywords' casing does not match", Line: 2, Level: 1, }, @@ -392,7 +392,7 @@ copy Dockerfile . RuleName: "FromAsCasing", Description: "The 'as' keyword should match the case of the 'from' keyword", URL: "https://docs.docker.com/go/dockerfile/rule/from-as-casing/", - Detail: "'as' and 'FROM' keywords' casing do not match", + Detail: "'as' and 'FROM' keywords' casing does not match", Line: 2, Level: 1, }, @@ -413,7 +413,7 @@ copy Dockerfile . RuleName: "FromAsCasing", Description: "The 'as' keyword should match the case of the 'from' keyword", URL: "https://docs.docker.com/go/dockerfile/rule/from-as-casing/", - Detail: "'as' and 'FROM' keywords' casing do not match", + Detail: "'as' and 'FROM' keywords' casing does not match", Line: 2, Level: 1, }, @@ -465,7 +465,7 @@ FROM scratch AS base3 RuleName: "FromAsCasing", Description: "The 'as' keyword should match the case of the 'from' keyword", URL: "https://docs.docker.com/go/dockerfile/rule/from-as-casing/", - Detail: "'as' and 'FROM' keywords' casing do not match", + Detail: "'as' and 'FROM' keywords' casing does not match", Line: 8, Level: 1, }, @@ -487,7 +487,7 @@ from scratch as base2 RuleName: "FromAsCasing", Description: "The 'as' keyword should match the case of the 'from' keyword", URL: "https://docs.docker.com/go/dockerfile/rule/from-as-casing/", - Detail: "'AS' and 'from' keywords' casing do not match", + Detail: "'AS' and 'from' keywords' casing does not match", Line: 4, Level: 1, }, @@ -535,7 +535,7 @@ FROM scratch AS base2 RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'From' should match the case of the command majority (uppercase)", + Detail: "Command 'From' should match the case of the majority of commands (uppercase)", Level: 1, Line: 4, }, @@ -556,7 +556,7 @@ COPY Dockerfile /bar RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'copy' should match the case of the command majority (uppercase)", + Detail: "Command 'copy' should match the case of the majority of commands (uppercase)", Line: 4, Level: 1, }, @@ -576,7 +576,7 @@ from scratch as base2 RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'frOM' should match the case of the command majority (lowercase)", + Detail: "Command 'frOM' should match the case of the majority of commands (lowercase)", Line: 4, Level: 1, }, @@ -596,7 +596,7 @@ copy Dockerfile /bar RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'COPY' should match the case of the command majority (lowercase)", + Detail: "Command 'COPY' should match the case of the majority of commands (lowercase)", Line: 4, Level: 1, }, @@ -618,7 +618,7 @@ COPY Dockerfile /baz RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'from' should match the case of the command majority (uppercase)", + Detail: "Command 'from' should match the case of the majority of commands (uppercase)", Line: 4, Level: 1, }, @@ -640,7 +640,7 @@ copy Dockerfile /baz RuleName: "ConsistentInstructionCasing", Description: "All commands within the Dockerfile should use the same casing (either upper or lower)", URL: "https://docs.docker.com/go/dockerfile/rule/consistent-instruction-casing/", - Detail: "Command 'FROM' should match the case of the command majority (lowercase)", + Detail: "Command 'FROM' should match the case of the majority of commands (lowercase)", Line: 4, Level: 1, }, @@ -1056,7 +1056,7 @@ RUN echo $foo RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$foo'", + Detail: "Usage of undefined variable $foo", Level: 1, Line: 3, }, @@ -1079,7 +1079,7 @@ COPY $DIR_ASSET . RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$DIR_ASSET' (did you mean $DIR_ASSETS?)", + Detail: "Usage of undefined variable $DIR_ASSET (did you mean $DIR_ASSETS?)", Level: 1, Line: 6, }, @@ -1099,7 +1099,7 @@ ENV PATH=$PAHT:/tmp/bin RuleName: "UndefinedVar", Description: "Variables should be defined before their use", URL: "https://docs.docker.com/go/dockerfile/rule/undefined-var/", - Detail: "Usage of undefined variable '$PAHT' (did you mean $PATH?)", + Detail: "Usage of undefined variable $PAHT (did you mean $PATH?)", Level: 1, Line: 3, }, @@ -1187,7 +1187,7 @@ LABEL key value RuleName: "LegacyKeyValueFormat", Description: "Legacy key/value format with whitespace separator should not be used", URL: "https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/", - Detail: "\"ENV key=value\" should be used instead of legacy \"ENV key value\" format", + Detail: "`ENV key=value` should be used instead of legacy `ENV key value` format", Line: 3, Level: 1, }, @@ -1195,7 +1195,7 @@ LABEL key value RuleName: "LegacyKeyValueFormat", Description: "Legacy key/value format with whitespace separator should not be used", URL: "https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/", - Detail: "\"LABEL key=value\" should be used instead of legacy \"LABEL key value\" format", + Detail: "`LABEL key=value` should be used instead of legacy `LABEL key value` format", Line: 4, Level: 1, }, @@ -1227,7 +1227,7 @@ FROM a AS c RuleName: "LegacyKeyValueFormat", Description: "Legacy key/value format with whitespace separator should not be used", URL: "https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/", - Detail: "\"ENV key=value\" should be used instead of legacy \"ENV key value\" format", + Detail: "`ENV key=value` should be used instead of legacy `ENV key value` format", Line: 3, Level: 1, }, @@ -1235,7 +1235,7 @@ FROM a AS c RuleName: "LegacyKeyValueFormat", Description: "Legacy key/value format with whitespace separator should not be used", URL: "https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/", - Detail: "\"LABEL key=value\" should be used instead of legacy \"LABEL key value\" format", + Detail: "`LABEL key=value` should be used instead of legacy `LABEL key value` format", Line: 4, Level: 1, }, diff --git a/frontend/dockerfile/docs/rules/_index.md b/frontend/dockerfile/docs/rules/_index.md index 0938ace3dfe8..d20565dad7ba 100644 --- a/frontend/dockerfile/docs/rules/_index.md +++ b/frontend/dockerfile/docs/rules/_index.md @@ -37,7 +37,7 @@ To learn more about how to use build checks, see