0

Is there a way you can suppress a checkstyle rule only for the annotations in a file. Example I am getting a magic number in my annotation and I want to suppress magic number rule but only for the annotation not the whole file.

user1786822
  • 107
  • 1
  • 6

1 Answers1

0

Yes, you can set the ignoreAnnotation parameter to true in order to do that.

See documentation here.

barfuin
  • 16,865
  • 10
  • 85
  • 132