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

chore(operator): fix .golangci.yaml config file #16368

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions operator/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
# https://golangci-lint.run/usage/configuration/
linters-settings:
copyloopvar:
check-alias: true
Expand All @@ -12,9 +12,8 @@ linters-settings:
- blank
- dot
govet:
shadow: true
maligned:
suggest-new: true
enable:
- shadow
misspell:
locale: US
revive:
Expand Down Expand Up @@ -43,8 +42,3 @@ linters:

issues:
exclude-use-default: false
exclude-rules:
# - text: "could be of size"
# path: api/v1beta1/lokistack_types.go
# linters:
# - maligned
1 change: 1 addition & 0 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ scorecard: generate go-generate bundle-all ## Run scorecard tests for all bundle

.PHONY: lint
lint: $(GOLANGCI_LINT) | generate ## Run golangci-lint on source code.
$(GOLANGCI_LINT) config verify
$(GOLANGCI_LINT) run --timeout=5m ./...

.PHONY: lint-fix
Expand Down
Loading