Lint: use ignore-this on generated files (#596)

Make golint not complain about generated file - it's a bit of cheating,
but I think that is OK.
This commit is contained in:
Miek Gieben 2017-12-06 10:02:47 +00:00 committed by GitHub
parent 9271f6595b
commit fbee4ceea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 14 deletions

View File

@ -18,8 +18,7 @@ import (
)
var packageHdr = `
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from compress_generate.go
// Code generated by "go run compress_generate.go"; DO NOT EDIT.
package dns

View File

@ -18,8 +18,7 @@ import (
)
var packageHdr = `
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from msg_generate.go
// Code generated by "go run msg_generate.go"; DO NOT EDIT.
package dns

View File

@ -27,8 +27,7 @@ var skipLen = map[string]struct{}{
}
var packageHdr = `
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from types_generate.go
// Code generated by "go run types_generate.go"; DO NOT EDIT.
package dns

View File

@ -1,5 +1,4 @@
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from compress_generate.go
// Code generated by "go run compress_generate.go"; DO NOT EDIT.
package dns

View File

@ -1,5 +1,4 @@
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from msg_generate.go
// Code generated by "go run msg_generate.go"; DO NOT EDIT.
package dns

View File

@ -1,5 +1,4 @@
// *** DO NOT MODIFY ***
// AUTOGENERATED BY go generate from types_generate.go
// Code generated by "go run types_generate.go"; DO NOT EDIT.
package dns
@ -592,9 +591,9 @@ func (rr *TKEY) len() int {
l += 2 // Mode
l += 2 // Error
l += 2 // KeySize
l += len(rr.Key) + 1
l += len(rr.Key)/2 + 1
l += 2 // OtherLen
l += len(rr.OtherData) + 1
l += len(rr.OtherData)/2 + 1
return l
}
func (rr *TLSA) len() int {