4

I would like to tell Clover to ignore particular lines of my Java code. Is there any way to do so from within the code?

Something like

//// IGNORE vvvvvvv
System.out.println("Ignore this line and considered it covered");
//// IGNORE ^^^^^^^

If not, is there a clean way to do so by providing a context descriptor from outside the code?

Michael
  • 41,989
  • 11
  • 82
  • 128
Victor Grazi
  • 15,563
  • 14
  • 61
  • 94

1 Answers1

5

you can use:

//CLOVER:OFF
//CLOVER:ON

Here's official doc about it

grzlew
  • 570
  • 3
  • 6