Skip to content

Test Files Pass CI Despite Improper Indentation #2776

@nmn3m

Description

@nmn3m

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

Metadata

Metadata

Assignees

Labels

needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions