Skip to content

Commit

Permalink
fix: add "Code generated by" comment
Browse files Browse the repository at this point in the history
To properly hide the generated code in reviews, and avoid linting.
  • Loading branch information
odsod committed Apr 3, 2022
1 parent 1393e09 commit 416d1d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (p *plugin) run() error {
filepath.Dir(file.GeneratedFilenamePrefix)+"/"+filepath.Base(serviceConfigFile)+".go",
file.GoImportPath,
)
g.P("// Code generated by protoc-gen-go-grpc-service-config. DO NOT EDIT.")
g.P("package ", file.GoPackageName)
g.P()
g.P("// ServiceConfig is the service config for all services in the package.")
Expand Down

0 comments on commit 416d1d7

Please sign in to comment.