Mining/pkg/node
Claude e263fe7f1e
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(node): rename loop variable p to peer in peer_test.go
AX Principle 1 — Predictable names over short names.
The single-letter `p` in `for _, p := range peers` is not listed
in the allowed exceptions (only `i`, `_`, `t`, `c` are permitted).
Rename to `peer` for semantic clarity.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 16:21:34 +01:00
..
bufpool.go ax(node): expand abbreviated variable names in bufpool to predictable full names 2026-04-02 10:02:11 +01:00
bundle.go ax(node): replace prose type comments with usage examples in bundle.go 2026-04-02 16:13:16 +01:00
bundle_test.go ax(node): rename bundle_test.go functions to TestFilename_Function_{Good,Bad,Ugly} convention 2026-04-02 10:15:00 +01:00
controller.go ax(node): replace prose comment with usage example in NewController 2026-04-02 16:18:23 +01:00
dispatcher.go Implement STIM bundle decryption and installation 2026-02-02 06:07:05 +00:00
identity.go ax(node): replace banned path/filepath import with path in identity.go 2026-04-02 16:11:32 +01:00
identity_test.go ax(node): rename nm/nm1/nm2 to nodeManager/nodeManager1/nodeManager2 in identity test 2026-04-02 13:14:08 +01:00
lethean.go ax(node): rename ChainInfo.Aliases to AliasCount for type clarity 2026-04-02 16:15:07 +01:00
lethean_test.go ax(node): strip _WrongURL suffix from lethean test names 2026-04-02 12:23:44 +01:00
message.go ax(node): rename abbreviated receiver names to full predictable names 2026-04-02 14:22:52 +01:00
message_test.go ax(node): rename message_test.go functions to TestMessage_Function_{Good,Bad,Ugly} 2026-04-02 11:25:07 +01:00
peer.go ax(node): replace prose comment with usage example on peerNamePattern 2026-04-02 16:19:45 +01:00
peer_test.go ax(node): rename loop variable p to peer in peer_test.go 2026-04-02 16:21:34 +01:00
protocol.go ax(node): rename pe to protocolError in GetProtocolErrorCode 2026-04-02 16:16:44 +01:00
protocol_test.go ax(node): rename protocol_test.go functions to TestFilename_Function_{Good,Bad,Ugly} 2026-04-02 12:56:35 +01:00
transport.go ax(node): replace prose comments with usage examples on debug log vars 2026-04-02 16:09:43 +01:00
worker.go ax(node): replace banned path/filepath import with path in worker.go 2026-04-02 16:08:14 +01:00
worker_test.go ax(node): add Good and Ugly test cases for HandleStartMiner, HandleStopMiner, and HandleGetLogs 2026-04-02 14:08:49 +01:00