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 (and remove all Clover data etc), then open "File > Settings > Project Settings > Clover" and deselect the "Enable Clover" checkbox.
In order to track the code coverage of your projects, Clover must insert special code into your program at compilation time - called instrumentation - to record this coverage. When Clover is enabled on your project, Clover will automatically perform this task for every file you compile in the project. You can tell Clover not to instrument your project by clicking "Toggle build with Clover" button (on a main bar).
Right click on a module in Project view and select "Exclude module from Clover instrumentation" from context menu.
Right click on a package in Project view, select "Change exclusion" and next one of "Include ..." / "Exclude ..." / "Edit settings ..." from context menu.
Right click on a file in Project view, select "Change exclusion" and next one of "Include ..." / "Exclude ..." / "Edit settings ..." from context menu.
Open "File > Settings > Project Settings > Clover" page. Open "Contexts" tab.
In the "Built-in context filters" box you can choose Java language constructs or coding patterns to be excluded. The most interesting are:
Open "File > Settings > Project Settings > Clover" page. Open "Contexts" tab.
In the "Custom Contexts" box 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.
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:
These buttons are available on main menu bar.
Now you have your project instrumentation tuned to your needs. Are you looking for more tweaks? Read the 5. IDEA configuration options chapter.