Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
re-enable all linters again, in preparation to disable only those not…
Browse files Browse the repository at this point in the history
… helpful
  • Loading branch information
dertseha committed Mar 14, 2021
1 parent 0a85383 commit 1c2e3e5
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ run:
- sdl

linters:
enable:
- whitespace
- godot
- godox
- golint
# Take an aggressive approach: enable everything and only disable if not useful.
# So far there are fewer to disable than to enable explicitly.
enable-all: true

# linters are disabled if their majority of issues is considered false-positive (intended code)
# and the remaining issues (if existing) aren't worth it.
disable:
- gochecknoglobals
- goimports # disabled because of so many false-positives with "imgui-go"
- gofumpt # disabled because no extra need
- gosec
- maligned
- gomnd # disabled as most OpenGL stuff are direct constants.
- funlen # disabled because of example code. While people will probably tend to duplicate this, they'll handle it on their own.
- wsl # this one became too pedantic and with a different style than I would.

issues:
exclude-use-default: false # disable filtering of defaults for better zero-issue policy
Expand Down

0 comments on commit 1c2e3e5

Please sign in to comment.