Skip to content

Commit 0e876a7

Browse files
committed
Merge remote-tracking branch 'origin/master' into MM-69374-livekit
2 parents 6ae356a + c09a9a3 commit 0e876a7

2 files changed

Lines changed: 50 additions & 28 deletions

File tree

.golangci.yml

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,53 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
modules-download-mode: readonly
4-
5-
linters-settings:
6-
gofmt:
7-
simplify: true
8-
govet:
9-
enable-all: true
10-
disable:
11-
- fieldalignment
12-
- shadow
13-
144
linters:
15-
disable-all: true
5+
default: none
166
enable:
17-
- gofmt # Checks whether code was gofmt-ed
18-
- revive # Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint
19-
- gosimple # Linter for Go source code that specializes in simplifying a code
20-
- govet # Examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
21-
- ineffassign # Detects when assignments to existing variables are not used
22-
- unconvert # Removes unnecessary type conversions
23-
- unused # Checks Go code for unused constants, variables, functions and types
24-
- copyloopvar # Checks for pointers to enclosing loop variables
25-
- errcheck # Detects unchecked errors.
26-
27-
issues:
28-
exclude-rules:
29-
- linters:
30-
- unused
31-
text: "getConfiguration"
7+
- copyloopvar
8+
- errcheck
9+
- govet
10+
- ineffassign
11+
- revive
12+
- staticcheck
13+
- unconvert
14+
- unused
15+
settings:
16+
govet:
17+
disable:
18+
- fieldalignment
19+
- shadow
20+
enable-all: true
21+
staticcheck:
22+
# v1 enabled only the gosimple (S1xxx) checks via the `gosimple` linter,
23+
# which v2 folds into `staticcheck`. Restrict to S1* to preserve the
24+
# previous behavior; adopting the SA/ST/QF checks is a separate change.
25+
checks:
26+
- S1*
27+
exclusions:
28+
generated: lax
29+
presets:
30+
- comments
31+
- common-false-positives
32+
- legacy
33+
- std-error-handling
34+
rules:
35+
- linters:
36+
- unused
37+
text: getConfiguration
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$
42+
formatters:
43+
enable:
44+
- gofmt
45+
settings:
46+
gofmt:
47+
simplify: true
48+
exclusions:
49+
generated: lax
50+
paths:
51+
- third_party$
52+
- builtin$
53+
- examples$

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ DOCKER_USER ?= user
6666
DOCKER_PASSWORD ?= password
6767
## Docker Images
6868
DOCKER_IMAGE_GO += "golang:${GO_VERSION}"
69-
DOCKER_IMAGE_GOLINT += "golangci/golangci-lint:v1.64.5@sha256:9faef4dda4304c4790a14c5b8c8cd8c2715a8cb754e13f61d8ceaa358f5a454a"
69+
DOCKER_IMAGE_GOLINT += "golangci/golangci-lint:v2.6.0@sha256:cc8c1277eefdb5f88ba1381ee30a8bdf709e3615db9c843c9fcc04d9ac1d27a8"
7070
DOCKER_IMAGE_DOCKERLINT += "hadolint/hadolint:v2.12.0@sha256:9259e253a4e299b50c92006149dd3a171c7ea3c5bd36f060022b5d2c1ff0fbbe"
7171
DOCKER_IMAGE_COSIGN += "bitnami/cosign:1.8.0@sha256:8c2c61c546258fffff18b47bb82a65af6142007306b737129a7bd5429d53629a"
7272
DOCKER_IMAGE_GH_CLI += "ghcr.io/supportpal/github-gh-cli:2.31.0@sha256:71371e36e62bd24ddd42d9e4c720a7e9954cb599475e24d1407af7190e2a5685"

0 commit comments

Comments
 (0)