Skip to content

Commit 990ce52

Browse files
committed
chore(lint): set new-from-rev to base libevm commit hash
1 parent be6e93e commit 990ce52

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # required for new-from-rev option to work
2224
- uses: actions/setup-go@v5
2325
with:
2426
go-version: stable

.golangci.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -78,38 +78,8 @@ linters-settings:
7878
disabled: true
7979

8080
issues:
81+
new-from-rev: 0b56af5a01b8a0c6fc9d60247bb79ffd03d1bcfd
8182
exclude-dirs-use-default: false
82-
exclude-rules:
83-
- path-except: libevm
84-
linters:
85-
# If any issue is flagged in a non-libevm file, add the linter here
86-
# because the problem isn't under our control.
87-
- containedctx
88-
- forcetypeassert
89-
- errcheck
90-
- gci
91-
- gofmt
92-
- goheader
93-
- goimports
94-
- gosec
95-
- gosimple
96-
- govet
97-
- nakedret
98-
- nestif
99-
- nilerr
100-
- nolintlint
101-
- revive
102-
- staticcheck
103-
- tagliatelle
104-
- testableexamples
105-
- testifylint
106-
- thelper
107-
- tparallel
108-
- typecheck
109-
- usestdlibvars
110-
- varnamelen
111-
- wastedassign
112-
- whitespace
11383
include:
11484
# Many of the default exclusions are because, verbatim "Annoying issue",
11585
# which defeats the point of a linter.

0 commit comments

Comments
 (0)