First & most importantly, thank you for the excellent
scalaStyle.
A number of tails of who start with "I have inherited
this code...".
Well, I have inherited the (slightly obfuscated) code
below and am trying to get it to pass ScalaStyle.
val a = new b.c(1234)
ScalaStyle, rightly, complains about the magic number.
The ScalaStyle documentation states/implies that
adding // scalastyle:ignore should defeat all checking
of that one line only.
val a = new b.c(1234) // scalastyle:ignore
After I add // scalastyle:ignore (and write all
dirty buffers, etc.), ScalaStyle _still_ complains
about the magic number.
Is this supposed to work, or have I missed something
in either my reading of the documentation or editing
of the file?
I am able to work around this by, as documented,
turning scalastyle magic.number off and on on the
lines before and after the call.
For my own understanding & education, I would like
to figure out the 'ignore' format. Changing one line
in inherited code rather than two makes it more
likely that I will make the change. Besides, the
inline form shows up better in diff. I am probably
preaching to the choir, These are probably the reasons
that some kind soul took the time to implement in the
first place ;-)
Thank you,
Lee