Skip to content

Commit

Permalink
update: add govet shadow for golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Sep 19, 2024
1 parent f764083 commit 41019fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ linters-settings:
- (net/http.ResponseWriter).Write
- io.Copy
- os.RemoveAll
govet:
enable:
- shadow
goimports:
local-prefixes: github.com/ifooth/devcontainer
gci:
Expand All @@ -66,10 +69,15 @@ linters-settings:
- name: line-length-limit
arguments:
- 120
- name: function-length
arguments:
- 80 # statements
- 120 # lines
- name: cyclomatic
arguments:
- 30
- name: use-any
- name: early-return
- name: exported
arguments:
- checkPrivateReceivers
Expand Down
8 changes: 8 additions & 0 deletions root/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ linters-settings:
- (net/http.ResponseWriter).Write
- io.Copy
- os.RemoveAll
govet:
enable:
- shadow
# goimports:
# local-prefixes: github.com/ifooth/devcontainer
# gci:
Expand All @@ -64,10 +67,15 @@ linters-settings:
- name: line-length-limit
arguments:
- 120
- name: function-length
arguments:
- 80 # statements
- 120 # lines
- name: cyclomatic
arguments:
- 30
- name: use-any
- name: early-return
- name: exported
arguments:
- checkPrivateReceivers
Expand Down

0 comments on commit 41019fc

Please sign in to comment.