rule @team/rule-no-magic-numbers

No Magic Numbers

Numeric literals other than 0 and 1 used in logic or calculations must be named constants. 'Magic numbers' are numeric literals that appear with no explanation — the reader must guess what 86400 or 3.…

Skill
@team
Domain
coding-style
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
69/165/243
$ aoe install @team/rule-no-magic-numbers

Projection

Always in _index.xml · the agent never has to ask for this.

NoMagicNumbers [rule] v1.0.0

Numeric literals other than 0 and 1 used in logic or calculations must be named constants. 'Magic numbers' are numeric literals that appear with no explanation — the reader must guess what 86400 or 3.14159 mean in context.

Source

aoe-engine/examples/coding-style/primes/compiled/@team/rule-no-magic-numbers/atom.yaml