mirror of
https://github.com/odamex/odamex
synced 2026-08-19 02:23:09 -04:00
Add some additional exceptions for magic numbers
This commit is contained in:
parent
c5e8842b77
commit
55d1a88a68
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue