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 2d4fed1 commit ab5ccac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ linters:
- gosimple # Linter for Go source code that specializes in simplifying a code
- 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
- unused # Checks Go code for unused constants, variables, functions and types
- copyloopvar
- staticcheck # It's a set of rules from staticcheck. It's not the same thing as the staticcheck binary.
- unused # Checks Go code for unused constants, variables, functions and types.
- copyloopvar # Detects places where loop variables are copied.

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

0 comments on commit ab5ccac

Please sign in to comment.