Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid golangci-lint config #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

adombeck
Copy link
Contributor

@adombeck adombeck commented Feb 17, 2025

The nolintlint settings must be part of the "linters-settings" list.
Since the nolintlint linter is not enabled in this config, we just
remove its settings here.

Fixes that golangci-lint fails in the CI with:

Failed to run: Error: Command failed: /home/runner/golangci-lint-1.63.4-linux-amd64/golangci-lint config verify
jsonschema: "" does not validate with "/additionalProperties": additional properties 'nolintlint' not allowed
Failed executing command with error: the configuration contains invalid elements

@adombeck adombeck force-pushed the fix-golangci-config branch from 2060c76 to 5c90d3f Compare February 17, 2025 11:27
The nolintlint settings must be part of the "linters-settings" list.
Since the nolintlint linter is not enabled in this config, we just
remove its settings here.

Fixes that golangci-lint fails in the CI with:

    Failed to run: Error: Command failed: /home/runner/golangci-lint-1.63.4-linux-amd64/golangci-lint config verify
    jsonschema: "" does not validate with "/additionalProperties": additional properties 'nolintlint' not allowed
    Failed executing command with error: the configuration contains invalid elements
@adombeck adombeck force-pushed the fix-golangci-config branch from 5c90d3f to 3d3881f Compare February 17, 2025 11:39
@adombeck adombeck marked this pull request as ready for review February 17, 2025 11:41
@adombeck adombeck requested a review from a team as a code owner February 17, 2025 11:41
@adombeck adombeck requested a review from didrocks February 17, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant