Add more lints: asciicheck, bidichk, spancheck (#8182)
Remove a few trivial instances of trailing whitespace.
This commit is contained in:
parent
f0dfbfdb08
commit
4d28e010f6
|
@ -1,6 +1,8 @@
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
|
- asciicheck
|
||||||
|
- bidichk
|
||||||
- errcheck
|
- errcheck
|
||||||
- gofmt
|
- gofmt
|
||||||
- gosec
|
- gosec
|
||||||
|
@ -9,6 +11,7 @@ linters:
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
- nolintlint
|
- nolintlint
|
||||||
|
- spancheck
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
|
|
|
@ -391,7 +391,6 @@ func (dnsClient *impl) exchangeOne(ctx context.Context, hostname string, qtype u
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// isTLD returns a simplified view of whether something is a TLD: does it have
|
// isTLD returns a simplified view of whether something is a TLD: does it have
|
||||||
|
|
|
@ -220,7 +220,6 @@ func (sa *StorageAuthorityReadOnly) GetCertificateStatus(_ context.Context, req
|
||||||
|
|
||||||
func (sa *StorageAuthorityReadOnly) SetCertificateStatusReady(ctx context.Context, req *sapb.Serial, _ ...grpc.CallOption) (*emptypb.Empty, error) {
|
func (sa *StorageAuthorityReadOnly) SetCertificateStatusReady(ctx context.Context, req *sapb.Serial, _ ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "unimplemented mock")
|
return nil, status.Error(codes.Unimplemented, "unimplemented mock")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRevocationStatus is a mock
|
// GetRevocationStatus is a mock
|
||||||
|
|
|
@ -48,7 +48,6 @@ stale.
|
||||||
}
|
}
|
||||||
serialNumber := big.NewInt(0).SetBytes(bytes)
|
serialNumber := big.NewInt(0).SetBytes(bytes)
|
||||||
_, err = helper.ReqSerial(serialNumber, config)
|
_, err = helper.ReqSerial(serialNumber, config)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_, err = helper.ReqFile(a, config)
|
_, err = helper.ReqFile(a, config)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue