#367 MagicNumber triggers on enum ordinals/no token for this

release_4.0
closed
5
2012-10-10
2005-09-08
ajbanck
No

When using enums with ordinal values, the MagicNumber
module sees this as magic number.
I would not see these as magic numbers, so would like
to be able to have a token for enum ordinals

public enum CodeGeneratorStatus {
OK
(0),
EXECUTING (10000)
}

Discussion

  • Logged In: YES
    user_id=746148

    I think we should treat enum constants the same way as final
    fileds.
    So, I committed such changes to cvs for 4.0