style(go): add rule against type-only packages (per upaas #126 review) #2

Sapludināts
sneak sapludināja 2 revīzijas no :add-no-type-only-packages-rule uz main 2026-02-23 22:14:02 +01:00
Līdzstrādnieks

Adds a rule to CODE_STYLEGUIDE_GO.md: define types alongside their implementations, not in separate types, domain, or models packages.

Type-only packages cause alias imports and indicate poor package design.

Prompted by sneak's review comment on upaas PR #126.

Adds a rule to CODE_STYLEGUIDE_GO.md: define types alongside their implementations, not in separate `types`, `domain`, or `models` packages. Type-only packages cause alias imports and indicate poor package design. Prompted by sneak's review comment on upaas PR #126.
sneak tika piešķirta problēma no clawbot 2026-02-23 20:48:14 +01:00
clawbot iesūtīja 1 revīziju 2026-02-23 20:48:14 +01:00
Types should live alongside their implementations, not in separate
'types', 'domain', or 'models' packages. Type-only packages cause
alias imports and indicate poor package design.

Prompted by review feedback on upaas PR #126.
clawbot iesūtīja 1 revīziju 2026-02-23 20:56:18 +01:00
Autors
Līdzstrādnieks

Added the Stringer rule: custom string-based types must implement fmt.Stringer, and .String() should be used at SDK/library boundaries instead of string(v).

Added the Stringer rule: custom string-based types must implement `fmt.Stringer`, and `.String()` should be used at SDK/library boundaries instead of `string(v)`.
sneak saplidināta revīzija dda0d01faa atzarā main 2026-02-23 22:14:02 +01:00
sneak izdzēsa atzaru add-no-type-only-packages-rule 2026-02-23 22:14:02 +01:00
Nepieciešams pieteikties, lai pievienotos šai sarunai.
No Reviewers
1 dalībnieki
Paziņojumi
Izpildes termiņš
Izpildes termiņš nav uzstādīts.
Atkarības

Nav atkarību.

Atsaucas uz: sneak/prompts#2