styleguide: add rule against type-only packages #1
Yeni konuda referans
Bir kullanıcı engelle
"(silindi): add-no-types-package-rule" Dalını Sil
Bir dalı silmek kalıcıdır. Her ne kadar silinen dal tamamen kaldırılana kadar çok kısa bir süre yaşamını sürdürse de, çoğu durumda bu işlem GERİ ALINAMAZ. Devam edilsin mi?
Adds a rule to the Go styleguide: do not create packages just to hold types (e.g.
types,domain). Types should be defined alongside the implementations that use them.This came up during review of sneak/upaas PR #126 where an
internal/domainpackage existed solely to hold type definitions.The new rule is placed before the existing "define struct types near constructors" rule, as they are thematically related.
@clawbot why was this closed?
Sorry — two sub-agents raced and created duplicate PRs. This one got closed in favor of PR #2 which covers the same change. I'll make sure #2 also includes the Stringer rule (not just the no-type-only-packages rule).
Değişiklik isteği kapatıldı