Skip to content

Commit cfd196d

Browse files
committed
#1352 Unable to check more than one class without FullBuildEnabled
1 parent 5ce4a76 commit cfd196d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ReleaseNotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Eclipse Update Site: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/upd
66

77
## ????: 4.0.7.v????
88

9+
* Fixed Unable to check more than one class without FullBuildEnabled ([#1352](https://sourceforge.net/p/pmd/bugs/1352/))
910
* Fixed Manually checking code with PMD only works if PMD is activated for the project ([bug #1351](https://sourceforge.net/p/pmd/bugs/1351/))
1011
* Fixed Check code after saving runs PMD unnecessarily ([bug #1350](https://sourceforge.net/p/pmd/bugs/1350/))
1112

13+
1214
## 01-April-2015: 4.0.6.v20150401-1945
1315

1416
* Updated PMD to 5.3.0

net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/ReviewCodeCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ private void processResource(IResource resource) throws CommandException {
401401
targetCount = countResourceElement(resource);
402402
}
403403
// Could add a property that lets us set the max number to analyze
404-
if (properties.isFullBuildEnabled() || targetCount == 1) {
404+
if (properties.isFullBuildEnabled() || isUserInitiated() || targetCount == 1) {
405405
setStepCount(targetCount);
406406
log.debug("Visiting resource " + resource.getName() + " : " + getStepCount());
407407

@@ -536,7 +536,7 @@ private void processResourceDelta() throws CommandException {
536536
// PMDEngine pmdEngine = getPmdEngineForProject(project);
537537
int targetCount = countDeltaElement(resourceDelta);
538538
// Could add a property that lets us set the max number to analyze
539-
if (properties.isFullBuildEnabled() || targetCount == 1) {
539+
if (properties.isFullBuildEnabled() || isUserInitiated() || targetCount == 1) {
540540
setStepCount(targetCount);
541541
log.debug("Visiting delta of resource " + resource.getName() + " : " + getStepCount());
542542

0 commit comments

Comments
 (0)