Add some additional exceptions for magic numbers

This commit is contained in:
Mia McMahill 2026-07-31 20:28:57 -05:00
parent c5e8842b77
commit 55d1a88a68

View file

@ -67,6 +67,8 @@ CheckOptions:
value: true
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
value: true
# add 0.5 to list, 1/2 is rarely an actual magic number
# add values that are obvious most of the time
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: 1.0;100.0;0.25;0.5;0.75
value: 1.0;100.0;0.25;0.5;0.75;255.0;-32768.0;32767.0
- key: readability-magic-numbers.IgnoredIntegerValues
value: 1;2;3;4;255;-32768;32767