Skip to content

Commit 496e31c

Browse files
committed
ci(lint): ⬆️ golangci 1.64 to 2.0
1 parent 2c3f749 commit 496e31c

File tree

1 file changed

+20
-34
lines changed

1 file changed

+20
-34
lines changed

configs/golangci/golangci.yml

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
1-
# golangci-lint configuration file made by @ccoVeille
2-
# Source: https://github.com/ccoVeille/golangci-lint-config-examples/
3-
# Author: @ccoVeille
4-
# License: MIT
5-
# Variant: 01-defaults
6-
# Version: v1.0.0
7-
#
8-
---
1+
version: "2"
92
run:
10-
# https://golangci-lint.run/usage/configuration/
11-
timeout: 10m
12-
go: '1.24'
3+
go: "1.24"
134
linters:
14-
# some linters are enabled by default
15-
# https://golangci-lint.run/usage/linters/
16-
#
17-
# enable some extra linters
18-
enable:
19-
# Errcheck is a program for checking for unchecked errors in Go code.
20-
- errcheck
21-
22-
# Linter for Go source code that specializes in simplifying code.
23-
- gosimple
24-
25-
# Vet examines Go source code and reports suspicious constructs.
26-
- govet
27-
28-
# Detects when assignments to existing variables are not used.
29-
- ineffassign
30-
31-
# It's a set of rules from staticcheck. See https://staticcheck.io/
32-
- staticcheck
33-
34-
# Fast, configurable, extensible, flexible, and beautiful linter for Go.
35-
# Drop-in replacement of golint.
36-
# - revive
5+
exclusions:
6+
generated: lax
7+
presets:
8+
- comments
9+
- common-false-positives
10+
- legacy
11+
- std-error-handling
12+
paths:
13+
- third_party$
14+
- builtin$
15+
- examples$
16+
formatters:
17+
exclusions:
18+
generated: lax
19+
paths:
20+
- third_party$
21+
- builtin$
22+
- examples$

0 commit comments

Comments
 (0)