Update CI configs to v0.4.5

Update lint scripts and CI configs.
Excluding codecov.yml.
This commit is contained in:
Pion
2020-09-09 06:15:01 +00:00
committed by Sean DuBois
parent 43637480b7
commit c044f70398
20 changed files with 228 additions and 284 deletions

View File

@@ -12,7 +12,7 @@ func BenchmarkErrorCode_AddTo(b *testing.B) {
m := New()
b.ReportAllocs()
for i := 0; i < b.N; i++ {
CodeStaleNonce.AddTo(m)
CodeStaleNonce.AddTo(m) //nolint: errcheck
m.Reset()
}
}
@@ -25,7 +25,7 @@ func BenchmarkErrorCodeAttribute_AddTo(b *testing.B) {
Reason: []byte("not found!"),
}
for i := 0; i < b.N; i++ {
a.AddTo(m)
a.AddTo(m) //nolint: errcheck
m.Reset()
}
}
@@ -37,9 +37,9 @@ func BenchmarkErrorCodeAttribute_GetFrom(b *testing.B) {
Code: 404,
Reason: []byte("not found!"),
}
a.AddTo(m)
a.AddTo(m) //nolint: errcheck
for i := 0; i < b.N; i++ {
a.GetFrom(m)
a.GetFrom(m) //nolint: errcheck
}
}
@@ -63,7 +63,7 @@ func TestMessage_AddErrorCode(t *testing.T) {
copy(m.TransactionID[:], transactionID)
expectedCode := ErrorCode(438)
expectedReason := "Stale Nonce"
CodeStaleNonce.AddTo(m)
CodeStaleNonce.AddTo(m) //nolint: errcheck
m.WriteHeader()
mRes := New()