Skip to content

Commit 354f2d1

Browse files
authored
Merge pull request moby#5475 from dvdksn/fix-docs-yaml-soup
Dockerfile: escape formatting issues in rule descriptions
2 parents 4622a2b + 819d7bc commit 354f2d1

21 files changed

+41
-21
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ despite warnings. To make the build fail on warnings, set `#check=error=true`.
347347

348348
> [!NOTE]
349349
> When using the `check` directive, with `error=true` option, it is recommended
350-
> to pin the [Dockerfile syntax]((#syntax)) to a specific version. Otherwise, your build may
350+
> to pin the [Dockerfile syntax](#syntax) to a specific version. Otherwise, your build may
351351
> start to fail when new checks are added in the future versions.
352352
353353
To combine both the `skip` and `error` options, use a semi-colon to separate

frontend/dockerfile/docs/rules/consistent-instruction-casing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: ConsistentInstructionCasing
3-
description: All commands within the Dockerfile should use the same casing (either upper or lower)
3+
description: >-
4+
All commands within the Dockerfile should use the same casing (either upper or lower)
45
aliases:
56
- /go/dockerfile/rule/consistent-instruction-casing/
67
---

frontend/dockerfile/docs/rules/copy-ignored-file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: CopyIgnoredFile
3-
description: Attempting to Copy file that is excluded by .dockerignore
3+
description: >-
4+
Attempting to Copy file that is excluded by .dockerignore
45
aliases:
56
- /go/dockerfile/rule/copy-ignored-file/
67
---

frontend/dockerfile/docs/rules/duplicate-stage-name.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: DuplicateStageName
3-
description: Stage names should be unique
3+
description: >-
4+
Stage names should be unique
45
aliases:
56
- /go/dockerfile/rule/duplicate-stage-name/
67
---

frontend/dockerfile/docs/rules/from-as-casing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: FromAsCasing
3-
description: The 'as' keyword should match the case of the 'from' keyword
3+
description: >-
4+
The 'as' keyword should match the case of the 'from' keyword
45
aliases:
56
- /go/dockerfile/rule/from-as-casing/
67
---

frontend/dockerfile/docs/rules/from-platform-flag-const-disallowed.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: FromPlatformFlagConstDisallowed
3-
description: FROM --platform flag should not use a constant value
3+
description: >-
4+
FROM --platform flag should not use a constant value
45
aliases:
56
- /go/dockerfile/rule/from-platform-flag-const-disallowed/
67
---

frontend/dockerfile/docs/rules/invalid-default-arg-in-from.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: InvalidDefaultArgInFrom
3-
description: Default value for global ARG results in an empty or invalid base image name
3+
description: >-
4+
Default value for global ARG results in an empty or invalid base image name
45
aliases:
56
- /go/dockerfile/rule/invalid-default-arg-in-from/
67
---

frontend/dockerfile/docs/rules/invalid-definition-description.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: InvalidDefinitionDescription
3-
description: Comment for build stage or argument should follow the format: `# <arg/stage name> <description>`. If this is not intended to be a description comment, add an empty line or comment between the instruction and the comment.
3+
description: >-
4+
Comment for build stage or argument should follow the format: `# <arg/stage name> <description>`. If this is not intended to be a description comment, add an empty line or comment between the instruction and the comment.
45
aliases:
56
- /go/dockerfile/rule/invalid-definition-description/
67
---

frontend/dockerfile/docs/rules/json-args-recommended.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: JSONArgsRecommended
3-
description: JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals
3+
description: >-
4+
JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals
45
aliases:
56
- /go/dockerfile/rule/json-args-recommended/
67
---

frontend/dockerfile/docs/rules/legacy-key-value-format.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: LegacyKeyValueFormat
3-
description: Legacy key/value format with whitespace separator should not be used
3+
description: >-
4+
Legacy key/value format with whitespace separator should not be used
45
aliases:
56
- /go/dockerfile/rule/legacy-key-value-format/
67
---

0 commit comments

Comments
 (0)