ax(ueps): replace prose comment with usage example on ThreatScore default
AX Principle 2: comments must show concrete usage, not prose rationale. "Assumed innocent until proven guilty" explains intent but shows no usage. Replaced with a concrete mutation example per the RFC convention. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
b28d0bd12f
commit
d067eda037
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ func NewPacketBuilder(intentID uint8, payload []byte) *PacketBuilder {
|
|||
CurrentLayer: 5, // Application
|
||||
TargetLayer: 5, // Application
|
||||
IntentID: intentID,
|
||||
ThreatScore: 0, // Assumed innocent until proven guilty
|
||||
ThreatScore: 0, // builder.Header.ThreatScore = 100 // elevated threat; 0 = clean
|
||||
},
|
||||
Payload: payload,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue