chore(deps): Bump golangci-lint from v2.0.2 to v2.1.2 (#16816)

This commit is contained in:
Paweł Żak 2025-04-22 09:43:45 +02:00 committed by GitHub
parent fc7d1ff2d7
commit b92f9572a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -106,7 +106,7 @@ jobs:
- run: 'make check-deps' - run: 'make check-deps'
- run: - run:
name: "Install golangci-lint" name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2 command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2
- run: - run:
name: "golangci-lint/Linux" name: "golangci-lint/Linux"
# There are only 4 vCPUs available for this executor, so use only 4 instead of the default number # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number
@ -120,7 +120,7 @@ jobs:
- check-changed-files-or-halt - check-changed-files-or-halt
- run: - run:
name: "Install golangci-lint" name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2 command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2
- run: - run:
name: "golangci-lint/macOS" name: "golangci-lint/macOS"
# There are only 4 vCPUs available for this executor, so use only 4 instead of the default number # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number
@ -134,7 +134,7 @@ jobs:
- check-changed-files-or-halt - check-changed-files-or-halt
- run: - run:
name: "Install golangci-lint" name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2 command: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2
- run: - run:
name: "golangci-lint/Windows" name: "golangci-lint/Windows"
# There are only 4 vCPUs available for this executor, so use only 4 instead of the default number # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number

View File

@ -68,6 +68,7 @@ linters:
# List of file globs that will match this list of settings to compare against. # List of file globs that will match this list of settings to compare against.
# By default, if a path is relative, it is relative to the directory where the golangci-lint command is executed. # By default, if a path is relative, it is relative to the directory where the golangci-lint command is executed.
# The placeholder '${base-path}' is substituted with a path relative to the mode defined with `run.relative-path-mode`. # The placeholder '${base-path}' is substituted with a path relative to the mode defined with `run.relative-path-mode`.
# The placeholder '${config-path}' is substituted with a path relative to the configuration file.
# Default: $all # Default: $all
files: files:
- '!**/agent/**' - '!**/agent/**'
@ -169,7 +170,7 @@ linters:
# Settings passed to gocritic. # Settings passed to gocritic.
# The settings key is the name of a supported gocritic checker. # The settings key is the name of a supported gocritic checker.
# The list of supported checkers can be find in https://go-critic.com/overview. # The list of supported checkers can be found at https://go-critic.com/overview.
settings: settings:
hugeParam: hugeParam:
# Size in bytes that makes the warning trigger. # Size in bytes that makes the warning trigger.
@ -470,7 +471,7 @@ linters:
# - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc. # - `lax`: sources are excluded if they contain lines like `autogenerated file`, `code generated`, `do not edit`, etc.
# - `disable`: disable the generated files exclusion. # - `disable`: disable the generated files exclusion.
# #
# Default: lax # Default: strict
generated: lax generated: lax
# Excluding configuration per-path, per-linter, per-text and per-source. # Excluding configuration per-path, per-linter, per-text and per-source.
@ -528,7 +529,7 @@ formatters:
gci: gci:
# Section configuration to compare against. # Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in (). # Section names are case-insensitive and may contain parameters in ().
# The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`, # The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`.
# If `custom-order` is `true`, it follows the order of `sections` option. # If `custom-order` is `true`, it follows the order of `sections` option.
# Default: ["standard", "default"] # Default: ["standard", "default"]
sections: sections:

View File

@ -180,7 +180,7 @@ vet:
.PHONY: lint-install .PHONY: lint-install
lint-install: lint-install:
@echo "Installing golangci-lint" @echo "Installing golangci-lint"
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.2 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.2
@echo "Installing markdownlint" @echo "Installing markdownlint"
npm install -g markdownlint-cli npm install -g markdownlint-cli

View File

@ -88,7 +88,6 @@ func TestCases(t *testing.T) {
output, n, err := config.ApplyMigrations(input) output, n, err := config.ApplyMigrations(input)
require.NoError(t, err) require.NoError(t, err)
require.NotEmpty(t, output) require.NotEmpty(t, output)
//nolint:testifylint // "useless-assert: meaningless assertion" - false positive
require.Positive(t, n, "expected migration application but none applied") require.Positive(t, n, "expected migration application but none applied")
actual := config.NewConfig() actual := config.NewConfig()
require.NoError(t, actual.LoadConfigData(output, config.EmptySourcePath)) require.NoError(t, actual.LoadConfigData(output, config.EmptySourcePath))