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

Birleştirildi
sneak 2026-02-23 22:14:02 +01:00 :add-no-type-only-packages-rule içindeki 2 işlemeyi main ile birleştirdi
Katkıcı

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 2026-02-23 20:48:14 +01:00 clawbot tarafından atandı
clawbot 1 işlemeyi 2026-02-23 20:48:14 +01:00 ekledi
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 1 işlemeyi 2026-02-23 20:56:18 +01:00 ekledi
Yazar
Katkıcı

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 dda0d01faa işlemesi, main dalına birleştirildi 2026-02-23 22:14:02 +01:00
sneak add-no-type-only-packages-rule dalı silindi 2026-02-23 22:14:02 +01:00
Bu konuşmaya katılmak için oturum aç.
Gözden geçiren yok
1 Katılımcı
Bildirimler
Bitiş Tarihi
Bitiş tarihi atanmadı.
Bağımlılıklar

Bağımlılık yok.

Referans: sneak/prompts#2