Skip to content

[Tech Debt]: Rename chaos-network.go to chaos_network.go for filename consistency #61

Description

@mrhillsman

Category

Code quality / code smell

Description

Filenames in internal/workloads/ use underscores everywhere except for chaos-network.go, which uses a hyphen:

  • Underscore: chaos_disk.go, chaos_process.go, tps.go, cpu.go, memory.go, disk.go, database.go, network.go
  • Hyphen: chaos-network.go

Go itself does not care, but the inconsistency is the kind of papercut that misleads readers and trips up file-search shortcuts.

Severity

Low — cosmetic or minor inconvenience

Affected Files

  • internal/workloads/chaos-network.go — rename to chaos_network.go
  • internal/workloads/chaos-network_test.go — rename to chaos_network_test.go
  • Any docs, CI scripts, or Makefile targets that name the file (grep -r 'chaos-network\.go')

Proposed Fix

git mv both files and run a repo-wide search for any literal string references. Single PR, no behavior change.

Area

Workloads

Architecture Layer

Layer 3 - Workload Definitions (workloads, registry)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.size/XSDenotes a PR that changes 0-9 lines, ignoring generated files.tech-debtTechnical debt, code quality, or maintenance concerntriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions