diff --git a/.golangci.yml b/.golangci.yml index 5a0031c..78f23ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,6 @@ linters: fast: false enable: - bodyclose - - deadcode - depguard - dogsled - dupl @@ -29,15 +28,31 @@ linters: - nolintlint - rowserrcheck - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace - gofumpt +linters-settings: + depguard: + rules: + Main: + files: + - $all + - "!$test" + allow: + - $gostd + - github.com/gin-gonic/gin + Test: + files: + - $test + allow: + - $gostd + - github.com/gin-gonic/gin + - github.com/stretchr/testify + run: timeout: 3m diff --git a/example/main.go b/_example/main.go similarity index 100% rename from example/main.go rename to _example/main.go