HaxeCheckstyle / haxe-checkstyle

Haxe Checkstyle
http://haxecheckstyle.github.io/docs
MIT License
124 stars 27 forks source link

MagicNumber check picks up inline final fields #494

Closed backwardspy closed 4 years ago

backwardspy commented 4 years ago

With code like this:

static inline final SOUND_COUNT:Int = 16;

I see MagicNumber warnings such as: MagicNumber - Info: "16" is a magic number. I think the MagicNumber checks could allow these numbers when they're in an inline final field.

Thanks!