Skip to content

Commit 708abda

Browse files
authoredOct 17, 2024··
chore(ci): bump golangci-lint to 1.59 (#93)
1 parent 4dac4ce commit 708abda

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed
 

‎.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: golangci-lint
3131
uses: golangci/golangci-lint-action@v6
3232
with:
33-
version: v1.55
33+
version: v1.59
3434
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
3535
# The location of the configuration file can be changed by using `--config=`
3636
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0

‎.golangci.yaml

+25-17
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ run:
99
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
1010
skip-dirs-use-default: true
1111

12-
# Which files to skip: they will be analyzed, but issues from them won't be reported.
13-
# Default value is empty list,
14-
# but there is no need to include all autogenerated files,
15-
# we confidently recognize autogenerated files.
16-
# If it's not please let us know.
17-
# "/" will be replaced by current OS file path separator to properly work on Windows.
18-
skip-files:
19-
- ".*\\.my\\.go$"
20-
- lib/bad.go
21-
2212
# If set we pass it to "go list -mod={option}". From "go help modules":
2313
# If invoked with -mod=readonly, the go command is disallowed from the implicit
2414
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -38,15 +28,22 @@ run:
3828

3929
# output configuration options
4030
output:
41-
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions|teamcity
42-
#
43-
# Multiple can be specified by separating them by comma, output can be provided
44-
# for each of them by separating format name and path by colon symbol.
31+
# The formats used to render issues.
32+
# Format: `colored-line-number`, `line-number`, `json`, `colored-tab`, `tab`, `checkstyle`, `code-climate`, `junit-xml`, `github-actions`, `teamcity`
4533
# Output path can be either `stdout`, `stderr` or path to the file to write to.
46-
# Example: "checkstyle:report.xml,json:stdout,colored-line-number"
4734
#
48-
# Default: colored-line-number
49-
format: colored-line-number
35+
# For the CLI flag (`--out-format`), multiple formats can be specified by separating them by comma.
36+
# The output can be specified for each of them by separating format name and path by colon symbol.
37+
# Example: "--out-format=checkstyle:report.xml,json:stdout,colored-line-number"
38+
# The CLI flag (`--out-format`) override the configuration file.
39+
#
40+
# Default:
41+
# formats:
42+
# - format: colored-line-number
43+
# path: stdout
44+
formats:
45+
- format: colored-line-number
46+
path: stdout
5047

5148
# Print lines of code with issue.
5249
# Default: true
@@ -185,6 +182,17 @@ issues:
185182
text: "fieldalignment:"
186183
linters:
187184
- govet
185+
186+
# Which files to skip: they will be analyzed, but issues from them won't be reported.
187+
# Default value is empty list,
188+
# but there is no need to include all autogenerated files,
189+
# we confidently recognize autogenerated files.
190+
# If it's not please let us know.
191+
# "/" will be replaced by current OS file path separator to properly work on Windows.
192+
exclude-files:
193+
- ".*\\.my\\.go$"
194+
- lib/bad.go
195+
188196
# Independently of option `exclude` we use default exclude patterns,
189197
# it can be disabled by this option.
190198
# To list all excluded by default patterns execute `golangci-lint run --help`.

0 commit comments

Comments
 (0)
Please sign in to comment.