From 12190a8a39a233dd478afcc17bd0ae596e3adab4 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 18 Apr 2024 16:02:01 +0700 Subject: [PATCH] Golangci lint up (#67) * golangci-lint v1.57.2 * save * save * save * save --- .golangci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index df6ae94..fa9697a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - deadline: 10m + timeout: 10m linters: presets: @@ -41,7 +41,6 @@ linters-settings: # By default list of stable checks is used. enabled-checks: # - ruleguard - - truncateCmp # - defaultCaseOrder # Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty @@ -83,9 +82,6 @@ linters-settings: sizeThreshold: 512 # whether to check test functions (default true) skipTestFuncs: true - truncateCmp: - # whether to skip int/uint/uintptr types (default true) - skipArchDependent: true underef: # whether to skip (*x).method() calls where x is a pointer receiver (default true) skipRecvDeref: true @@ -118,19 +114,16 @@ issues: linters: - gosec - unused - - deadcode - gocritic - path: hack\.go linters: - gosec - unused - - deadcode - gocritic - path: cmd/devp2p linters: - gosec - unused - - deadcode - gocritic - path: metrics/sample\.go linters: