Fix Nogo Lint Ignore for Go 1.18 (#10577)

* builds

* builds

* fatal

* edit
This commit is contained in:
Raul Jordan 2022-04-28 18:10:43 +00:00 committed by GitHub
parent 7a3df7642b
commit 7b03d901ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -42,8 +42,7 @@
"composites": {
"exclude_files": {
"external/.*": "Third party code",
"validator/accounts/.*": "Fuzz",
"validator/accounts/wallet_recover_fuzz_test.go": "Fuzz code"
".*testmain\\.go$": "Fuzz"
}
},
"cgocall": {
@ -76,8 +75,7 @@
"rules_go_work-.*": "Third party code",
"shared/mock/.*\\.go": "Mocks are OK",
".*/.*mock\\.go": "Mocks are OK",
".*/testmain\\.go": "Test runner generated code",
"validator/accounts/wallet_recover_fuzz_test.go": "Fuzz code",
".*testmain\\.go$": "Fuzz",
"proto/.*": "Generated protobuf related code",
"tools/analyzers/properpermissions/testdata/.*": "Analyzer breaks rules"
}

View File

@ -14,6 +14,7 @@ func FuzzValidateMnemonic(f *testing.F) {
f.Add("bag wagon luxury iron swarm yellow course merge trumpet wide cash idea disagree deny teach canvas profit iron sting warfare slide")
f.Add("bag wagon luxury iron swarm yellow course merge trumpet cash wide decide profit cash idea disagree deny teach canvas profit slice beach iron sting warfare slide")
f.Fuzz(func(t *testing.T, input string) {
accounts.ValidateMnemonic(input)
err := accounts.ValidateMnemonic(input)
_ = err
})
}