Skip to content

Commit 2a58318

Browse files
authored
Update lint action (#31)
* Update lint action * Update lint.yml * more
1 parent 0dc3852 commit 2a58318

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
go-version-file: "go.mod"
1818
cache: false
1919
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v6
20+
uses: golangci/golangci-lint-action@v7
2121
with:
22-
args: --timeout=10m --enable-all --disable wsl,gocritic,funlen,depguard,exhaustivestruct,varnamelen,nestif,cyclop,exhaustruct,revive
22+
args: --timeout=10m

cheat-parser.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func main() {
4444
if err != nil {
4545
log.Panic(err)
4646
}
47-
defer file.Close()
47+
defer file.Close() //nolint:errcheck
4848
scanner := bufio.NewScanner(file)
4949
for scanner.Scan() {
5050
game := cheatDB[currentGame]
@@ -87,7 +87,7 @@ func main() {
8787
log.Panic(err)
8888
}
8989

90-
f, err := os.OpenFile("cheats.json", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644) //nolint:gomnd,mnd
90+
f, err := os.OpenFile("cheats.json", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
9191
if err != nil {
9292
log.Panic(err)
9393
}
@@ -96,5 +96,5 @@ func main() {
9696
if _, err := w.Write(b); err != nil {
9797
log.Panic(err)
9898
}
99-
w.Flush()
99+
w.Flush() //nolint:errcheck
100100
}

0 commit comments

Comments
 (0)