Skip to content

Commit

Permalink
update .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vearne committed Oct 11, 2024
1 parent de6540a commit 871c014
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ linters:
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # Detects when assignments to existing variables are not used
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
# - typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- unused # Checks Go code for unused constants, variables, functions and types
- exportloopref # checks for pointers to enclosing loop variables
# - golint # Carry out the stylistic conventions put forth in Effective Go and CodeReviewComments
- copyloopvar

linters-settings:
govet: # 对于linter govet,我们手动开启了它的某些扫描规则
Expand Down

0 comments on commit 871c014

Please sign in to comment.