mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-03-31 06:24:00 -04:00
chore(lint): ignore dupl linter for test files
This commit is contained in:
@@ -14,6 +14,9 @@ issues:
|
||||
text: "mnd: Magic number: 2, in <argument> detected"
|
||||
linters:
|
||||
- gomnd
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- dupl
|
||||
|
||||
linters:
|
||||
enable:
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
func uint32Ptr(n uint32) *uint32 { return &n }
|
||||
|
||||
func Test_fetcher_IP(t *testing.T) { //nolint:dupl
|
||||
func Test_fetcher_IP(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
@@ -61,7 +61,7 @@ func Test_fetcher_IP(t *testing.T) { //nolint:dupl
|
||||
assert.Equal(t, expectedFetcher, initialFetcher)
|
||||
}
|
||||
|
||||
func Test_fetcher_IP4(t *testing.T) { //nolint:dupl
|
||||
func Test_fetcher_IP4(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -20,7 +20,7 @@ func Test_newDefaultSettings(t *testing.T) {
|
||||
assert.GreaterOrEqual(t, int(settings.timeout), int(time.Millisecond))
|
||||
}
|
||||
|
||||
func Test_SetProvidersIP(t *testing.T) { //nolint:dupl
|
||||
func Test_SetProvidersIP(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testCases := map[string]struct {
|
||||
@@ -72,7 +72,7 @@ func Test_SetProvidersIP(t *testing.T) { //nolint:dupl
|
||||
}
|
||||
}
|
||||
|
||||
func Test_SetProvidersIP4(t *testing.T) { //nolint:dupl
|
||||
func Test_SetProvidersIP4(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testCases := map[string]struct {
|
||||
@@ -124,7 +124,7 @@ func Test_SetProvidersIP4(t *testing.T) { //nolint:dupl
|
||||
}
|
||||
}
|
||||
|
||||
func Test_SetProvidersIP6(t *testing.T) { //nolint:dupl
|
||||
func Test_SetProvidersIP6(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
testCases := map[string]struct {
|
||||
|
||||
Reference in New Issue
Block a user