From 509d568d97176df1170590651ef355ff27f66090 Mon Sep 17 00:00:00 2001 From: Nguyen Nhu Viet Date: Thu, 23 Dec 2021 18:52:00 +0200 Subject: [PATCH] ci: increase tokens ratio for dupl to fix false positive scenarios (#314) * ci: fix dupl false positive * node: remove nolint:dupl from test * update changelog-pending.md --- .golangci.yml | 2 ++ CHANGELOG-PENDING.md | 1 + node/store_test.go | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 64a6c54e89..d43d74c587 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -67,3 +67,5 @@ linters-settings: locale: US goimports: local-prefixes: github.com/celestiaorg + dupl: + threshold: 200 diff --git a/CHANGELOG-PENDING.md b/CHANGELOG-PENDING.md index 9d4a9a8067..986a7276f8 100644 --- a/CHANGELOG-PENDING.md +++ b/CHANGELOG-PENDING.md @@ -26,3 +26,4 @@ Month, DD, YYYY - [header] Added missing `err` value in ErrorW logging calls. @jbowen93 - [service/block, node/p2p] [Fix race conditions in TestExtendedHeaderBroadcast and TestFull_P2P_Streams.](https://github.com/celestiaorg/celestia-node/pull/288) @jenyasd209 +- [ci: increase tokens ratio for dupl to fix false positive scenarios](https://github.com/celestiaorg/celestia-node/pull/314) @Bidon15 diff --git a/node/store_test.go b/node/store_test.go index 3e8097b6e6..0930c220c9 100644 --- a/node/store_test.go +++ b/node/store_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/require" ) -//nolint:dupl func TestRepoBridge(t *testing.T) { dir := t.TempDir() @@ -40,7 +39,6 @@ func TestRepoBridge(t *testing.T) { assert.NotNil(t, cfg) } -//nolint:dupl func TestRepoLight(t *testing.T) { dir := t.TempDir()