mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 02:10:46 +00:00
docs(linter): comment why goheader is only enabled in the CI (#101)
This commit is contained in:
parent
efa14ab5d0
commit
ce2cde5662
2 changed files with 25 additions and 18 deletions
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
|
|
@ -27,4 +27,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: v1.60
|
version: v1.60
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
|
# The goheader linter is enabled so that it runs only on modified or new files
|
||||||
|
# (see only-new-issues: true). Note it is disabled in .golangci.yml because
|
||||||
|
# golangci-lint is not aware of new/modified files compared to the last git commit,
|
||||||
|
# and we want to avoid reporting invalid goheader errors when running the linter locally.
|
||||||
args: --enable goheader
|
args: --enable goheader
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ linters:
|
||||||
- gci
|
- gci
|
||||||
- gocheckcompilerdirectives
|
- gocheckcompilerdirectives
|
||||||
- gofmt
|
- gofmt
|
||||||
|
# goheader is disabled but it is enabled in the CI with a flag.
|
||||||
|
# Please see .github/workflows/golangci-lint.yml which explains why.
|
||||||
|
# - goheader
|
||||||
- goimports
|
- goimports
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- gosec
|
- gosec
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue