Skip to content

Fix snake_case naming violations to use camelCase#15

Merged
tzermias merged 1 commit into
mainfrom
feature/fix-naming-conventions
Feb 17, 2026
Merged

Fix snake_case naming violations to use camelCase#15
tzermias merged 1 commit into
mainfrom
feature/fix-naming-conventions

Conversation

@tzermias

Copy link
Copy Markdown
Owner

Summary

This PR fixes all snake_case naming violations in the codebase, converting them to idiomatic Go camelCase naming.

Changes

pkg/jiecang/common.go:

  • data_typedataType
  • data_lendataLen
  • received_checksumreceivedChecksum
  • calc_checksumcalcChecksum

cmd/gotoMemory.go:

  • memory_nummemoryNum

pkg/jiecang/jiecang.go:

  • memory_namememoryName

cmd/listDevices.go:

  • device_addressdeviceAddr

Why This Matters

Go style guidelines require camelCase for local variable names, not snake_case. This improves:

  • Code Readability: Follows Go community standards
  • Consistency: All variables now follow the same naming pattern
  • Linting: Passes golangci-lint style checks

Test Results

make test   # ✅ PASS
make fmt    # ✅ PASS
make vet    # ✅ PASS

Breaking Changes

None - these are internal variable names that don't affect the public API.


🤖 Generated with Claude Code

@tzermias tzermias force-pushed the feature/fix-naming-conventions branch from 0c027c0 to a93de94 Compare February 17, 2026 09:02
Changes:
- common.go: data_type → dataType, data_len → dataLen,
  received_checksum → receivedChecksum,
  calc_checksum → calcChecksum
- gotoMemory.go: memory_num → memoryNum
- jiecang.go: memory_name → memoryName
- listDevices.go: device_address → deviceAddr
- Update .gitignore to exclude bin/ and .claude/ directories

This aligns the codebase with Go naming conventions which
require camelCase for local variables instead of snake_case.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tzermias tzermias force-pushed the feature/fix-naming-conventions branch from a93de94 to b2cbb76 Compare February 17, 2026 09:29
@tzermias tzermias merged commit 1178eab into main Feb 17, 2026
1 check passed
@tzermias tzermias deleted the feature/fix-naming-conventions branch February 17, 2026 15:57
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