Skip to content

Commit

Permalink
chore: tweak golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Sep 17, 2024
1 parent b4ff505 commit b5c4d4d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,10 @@ linters:
- mirror
- bodyclose

issues:
include:
# https://golangci-lint.run/usage/configuration/#command-line-options
exclude:
- Rollback
- logger.Sync
- pgInstance.Stop
- fmt.Printf
- Enter(.*)_(.*)
- Exit(.*)_(.*)

linters-settings:
goimports:
# Put imports beginning with prefix after 3rd-party packages.
local-prefixes: github.com/usememos/gomark
local-prefixes: github.com/usememos/memos
revive:
# Default to run all linters so that new rules in the future could automatically be added to the static check.
enable-all-rules: true
Expand Down Expand Up @@ -75,6 +64,8 @@ linters-settings:
disabled: true
- name: if-return
disabled: true
- name: max-control-nesting
disabled: true
gocritic:
disabled-checks:
- ifElseChain
Expand Down

0 comments on commit b5c4d4d

Please sign in to comment.