Skip to content

Commit

Permalink
add: .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianToledano committed Jan 4, 2025
1 parent a35e182 commit 861d6ce
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
run:
tests: true
timeout: 15m
allow-parallel-runners: true
build-tags:
- e2e
- ledger
- test_ledger_mock

linters:
disable-all: true
enable:
- dogsled
- errcheck
- errorlint
- copyloopvar
- gci
- goconst
- gocritic
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- revive
- staticcheck
- stylecheck
- thelper
- typecheck
- unconvert
- unused

issues:
exclude-dirs:
- docs
exclude-rules:
- text: "ST1003:" # We are fine with our current naming
linters:
- stylecheck

linters-settings:
gci:
custom-order: true
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/JulianToledano/goingecko)
revive:
rules:
- name: redefines-builtin-id
disabled: true

gosec:
exclude-generated: true
confidence: medium
misspell:
locale: US
gofumpt:
extra-rules: true
dogsled:
max-blank-identifiers: 6
nolintlint:
allow-unused: false
require-explanation: true
require-specific: false
gosimple:
checks: [ "all" ]
gocritic:
disabled-checks:
- regexpMust
- appendAssign
- ifElseChain
unused:
local-variables-are-used: false

0 comments on commit 861d6ce

Please sign in to comment.