Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit e73f78d

Browse files
committed
swagger: fix "generated code" comment not in correct format
As described in https://golang.org/s/generatedcode, Go has a formalized format that should be used to indicate that a file is generated. Matching that format helps linters to skip generated files; From https://golang.org/s/generatedcode (golang/go#13560 (comment)); > Generated files are marked by a line of text that matches the regular expression, in Go syntax: > > ^// Code generated .* DO NOT EDIT\.$ > > The `.*` means the tool can put whatever folderol it wants in there, but the comment > must be a single line and must start with `Code generated` and end with `DO NOT EDIT.`, > with a period. > > The text may appear anywhere in the file. This patch updates the template used for our generated types to match that format. Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: 3df4f86f21fbcae3535e2231828dce16a1940dbb Component: engine
1 parent 20d547f commit e73f78d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/engine/api/templates/server/operation.gotmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package {{ .Package }} // import "github.com/docker/docker/api/types/{{ .Package }}"
22

33
// ----------------------------------------------------------------------------
4-
// DO NOT EDIT THIS FILE
5-
// This file was generated by `swagger generate operation`
4+
// Code generated by `swagger generate operation`. DO NOT EDIT.
65
//
76
// See hack/generate-swagger-api.sh
87
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)