-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
Issue
PR #[2749] passed CI checks despite containing improper indentation in test files. Current linting configuration doesn't catch indentation issues in test files.
Example
# From horizontalpodautoscaler_test.go
# TYPE kube_horizontalpodautoscaler_spec_min_replicas gauge
# TYPE kube_horizontalpodautoscaler_spec_target_metric gauge
# TYPE kube_horizontalpodautoscaler_status_condition gauge
Solution
- Update
.golangci.yml
to enable whitespace linting for test files - Add CI check for consistent test file indentation
- Add style check to
make lint
command
Impact
- Maintains consistent codebase style
- Catches formatting issues before merge
rexagod
Metadata
Metadata
Assignees
Labels
needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.
Type
Projects
Status
Needs Triage