Clover provides many ways to fine-tune instrumentation scope, which gives you an ability to concentrate your work on the most important code.
If you want to completely disable Clover support for a project (which will remove it from the three Clover views, remove all Clover data etc), then right click on the project and select "Clover > Disable on this Project". If you wish to enable/disable Clover on multiple projects, right click on one of them and select "Clover | Enable/Disable on..." and select the projects you wish to have Clover enabled/disabled for.
In order to track the code coverage of your projects, Clover must insert special code into your programs at compilation time - called instrumentation - to record this coverage. When Clover is enabled on your projects, Clover will automatically perform this task for every file you compile in the project. You can tell Clover not to instrument your projects by:
Right click on a package in Package Explorer view, choose "Clover > Include/Exclude <package name>" from context menu.
Right click on a file in Package Explorer view, choose "Clover > Include/Exclude <file name>" from context menu.
Right click on a project in Package Explorer view, choose "Properties" from context menu, next "Clover > Instrumentation" tab.
In the Standard Coverage Context Filters you can choose Java language constructs or coding patterns to be excluded. The most interesting are:
Right click on a project in Package Explorer view, choose "Properties" from context menu, next "Clover > Instrumentation" tab.
In the Custom Coverage Context Filters you can define regular expressions for method signatures and statements.
Put "///CLOVER:OFF" and "///CLOVER:ON" in source code (note that three slashes are used) to exclude given sections.
Left click on a project in Coverage Explorer view. A pop-up will show with "Instrument and compile at" having two options:
If you wish to temporarily disable the red/green code coverage annotations in your Java source editors (but wish to continue using Clover on your projects), you can simple toggle one of three toggles:
This setting applies to all Clover-enabled projects in the workspace.
Now you have your project instrumentation tuned to your needs. Are you looking for more tweaks? Read the 5. Eclipse configuration options chapter.