Skip to content

Commit

Permalink
Add .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed Jan 3, 2023
1 parent 41b6a81 commit 132dfb3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# .golangci.yml for github.com/onflow/atree

linters:
disable-all: true
enable:
# enable default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused

# enable extra linters
- exportloopref
- gocritic
- gofmt
- goimports
- misspell
- nilerr
- unconvert

issues:
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
gocritic:
disabled-checks:
- ifElseChain # style
- singleCaseSwitch # style
- unslice # false positives
- commentFormatting # does not detect commented out code
- exitAfterDefer

goimports:
local-prefixes: github.com/onflow/atree

0 comments on commit 132dfb3

Please sign in to comment.