File tree 1 file changed +8
-0
lines changed
plugin-maven/src/main/java/com/diffplug/spotless/maven
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ public abstract class AbstractSpotlessMojo extends AbstractMojo {
91
91
@ Parameter (defaultValue = "${mojoExecution.goal}" , required = true , readonly = true )
92
92
private String goal ;
93
93
94
+ @ Parameter (defaultValue = "false" )
95
+ private boolean skip ;
96
+
94
97
@ Parameter (property = "spotless.apply.skip" , defaultValue = "false" )
95
98
private boolean applySkip ;
96
99
@@ -200,6 +203,10 @@ public final void execute() throws MojoExecutionException {
200
203
}
201
204
202
205
private boolean shouldSkip () {
206
+ if (skip ) {
207
+ return true ;
208
+ }
209
+
203
210
switch (goal ) {
204
211
case GOAL_CHECK :
205
212
return checkSkip ;
@@ -208,6 +215,7 @@ private boolean shouldSkip() {
208
215
default :
209
216
break ;
210
217
}
218
+
211
219
return false ;
212
220
}
213
221
You can’t perform that action at this time.
0 commit comments