Skip to content

Commit 70b37c8

Browse files
committed
Merge branch 'pr-40'
2 parents 3aaaf47 + 0fdf3c9 commit 70b37c8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ReleaseNotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Eclipse Update Site:
3131
* [#26](https://github.com/pmd/pmd-eclipse-plugin/pull/26): Updated french translations - [Clément Fournier](https://github.com/oowekyala)
3232
* [#37](https://github.com/pmd/pmd-eclipse-plugin/pull/37): Global Priority Filter for Violations Overview/Outline - [Phillip Krall](https://github.com/pkrall520)
3333
* [#39](https://github.com/pmd/pmd-eclipse-plugin/pull/39): Show PMD violations overview/outline views when checking code - [Phillip Krall](https://github.com/pkrall520)
34+
* [#40](https://github.com/pmd/pmd-eclipse-plugin/pull/40): Only excute PMD when check on save is enabled - [Phillip Krall](https://github.com/pkrall520)
3435

3536

3637
## 24-June-2017: 4.0.15.v20170624-2134

net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/runtime/builder/PMDBuilder.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ private void buildFull(IProgressMonitor monitor) throws CommandException {
9393
* @throws CommandException
9494
*/
9595
private void buildIncremental(IProgressMonitor monitor) throws CommandException {
96+
/*
97+
* Check the user preference to see if the user wants to run PMD on a save
98+
* */
99+
if (!PMDPlugin.getDefault().loadPreferences().isCheckAfterSaveEnabled()) {
100+
return;
101+
}
96102
IProject currentProject = getProject();
97103
if (currentProject != null) {
98104
IResourceDelta resourceDelta = this.getDelta(currentProject);

0 commit comments

Comments
 (0)