File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -170,23 +170,34 @@ public void setEncoding(Charset charset) {
170
170
171
171
final List <LintSuppression > lintSuppressions = new ArrayList <>();
172
172
173
+ /** Suppresses any lints which meet the supplied criteria. */
173
174
public void suppressLintsFor (Action <LintSuppression > lintSuppression ) {
174
175
LintSuppression suppression = new LintSuppression ();
175
176
lintSuppression .execute (suppression );
176
177
suppression .ensureDoesNotSuppressAll ();
177
178
lintSuppressions .add (suppression );
178
179
}
179
180
180
- /** Ignores errors in the given step. */
181
+ /**
182
+ * Ignores errors in the given step.
183
+ *
184
+ * @deprecated Use {@link #suppressLintsFor(Action)} instead.
185
+ */
181
186
@ Deprecated
182
187
public void ignoreErrorForStep (String stepName ) {
188
+ System .err .println ("`ignoreErrorForStep('" + stepName + "') is deprecated, use `suppressLintsFor { step = '" + stepName + "' }` instead." );
183
189
suppressLintsFor (it -> it .setStep (stepName ));
184
190
}
185
191
186
- /** Ignores errors for the given relative path. */
192
+ /**
193
+ * Ignores errors for the given relative path.
194
+ *
195
+ * @deprecated Use {@link #suppressLintsFor(Action)} instead.
196
+ */
187
197
@ Deprecated
188
198
public void ignoreErrorForPath (String relativePath ) {
189
- suppressLintsFor (it -> it .setFile (relativePath ));
199
+ System .err .println ("`ignoreErrorForPath('" + relativePath + "') is deprecated, use `suppressLintsFor { path = '" + relativePath + "' }` instead." );
200
+ suppressLintsFor (it -> it .setPath (relativePath ));
190
201
}
191
202
192
203
/**
You can’t perform that action at this time.
0 commit comments