Modify the generator to generate the code that is ignored by golint https://github... 97/7797/1
authorLukas Macko <lmacko@cisco.com>
Wed, 26 Jul 2017 14:01:40 +0000 (16:01 +0200)
committerLukas Macko <lmacko@cisco.com>
Wed, 26 Jul 2017 14:01:40 +0000 (16:01 +0200)
Change-Id: I30482b6322b2cfa397541fb96aa7ba8fb72dec0a
Signed-off-by: Lukas Macko <lmacko@cisco.com>
cmd/binapi-generator/generator.go

index 22fe3e1..d80f687 100644 (file)
@@ -384,8 +384,9 @@ func processMessageField(ctx *context, fields *[]string, fld *jsongo.JSONNode) e
 
 // generatePackageHeader generates package header into provider writer
 func generatePackageHeader(ctx *context, w io.Writer, rootNode *jsongo.JSONNode) {
+       fmt.Fprintln(w, "// Code generated by govpp binapi-generator DO NOT EDIT.")
        fmt.Fprintln(w, "// Package "+ctx.packageName+" represents the VPP binary API of the '"+ctx.packageName+"' VPP module.")
-       fmt.Fprintln(w, "// DO NOT EDIT. Generated from '"+ctx.inputFile+"'")
+       fmt.Fprintln(w, "// Generated from '"+ctx.inputFile+"'")
 
        fmt.Fprintln(w, "package "+ctx.packageName)