From 2b0a2da29205f3de29e57b853936d83c007a6a72 Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:35:53 +0900 Subject: [PATCH] add useful linters --- .golangci.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7f8a863071..594952bf19 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: tests: true - timeout: 5m + timeout: 15m allow-parallel-runners: true build-tags: - ledger @@ -14,26 +14,34 @@ linters: disable-all: true enable: - errcheck - - dogsled - - exportloopref - - goconst - - gocritic - - gci - - gofumpt - - gosec - gosimple - govet - ineffassign - - misspell + - staticcheck + - unused + - dogsled + - gosec + - gci + - gofumpt + - goconst + - gocritic - nakedret - nolintlint - - staticcheck - revive + - misspell - stylecheck - typecheck - thelper - unconvert - - unused + - asasalint + - asciicheck + - bidichk + - bodyclose + - copyloopvar + - errchkjson + - errorlint + - fatcontext + - wastedassign issues: exclude-dirs: