Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import ch.acanda.eclipse.pmd.PMDPlugin;
import ch.acanda.eclipse.pmd.cache.RuleSetsCache;
import ch.acanda.eclipse.pmd.cache.RuleSetsCacheLoader;
import ch.acanda.eclipse.pmd.marker.MarkerUtil;
import net.sourceforge.pmd.RuleSets;

/**
Expand All @@ -40,6 +41,11 @@ public class PMDBuilder extends IncrementalProjectBuilder {

private static final RuleSetsCache CACHE = new RuleSetsCache(new RuleSetsCacheLoader(), PMDPlugin.getDefault().getWorkspaceModel());

@Override
protected void clean(final IProgressMonitor monitor) throws CoreException {
MarkerUtil.removeAllMarkers(getProject());
}

@Override
@SuppressWarnings("PMD.ReturnEmptyArrayRatherThanNull")
protected IProject[] build(final int kind, @SuppressWarnings("rawtypes") final Map args, final IProgressMonitor monitor)
Expand Down