Skip to content

Commit

Permalink
Merge pull request #1690 from jenkinsci/remove-isBlameDisabled
Browse files Browse the repository at this point in the history
Use the correct property name `skipBlames`
  • Loading branch information
uhafner committed Feb 28, 2024
2 parents 694fd8b + 0db1054 commit 1aa3487
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,23 @@ public String getScm() {
*
* @return {@code true} if SCM blaming should be disabled
*/
@SuppressWarnings("PMD.BooleanGetMethodName")
public boolean getBlameDisabled() {
public boolean isSkipBlames() {
return isBlameDisabled;
}

@DataBoundSetter
public void setSkipBlames(final boolean skipBlames) {
isBlameDisabled = skipBlames;
}

/**
* Sets whether SCM blaming should be disabled.
*
* @param blameDisabled
* {@code true} if SCM blaming should be disabled
* @deprecated use {@link #setSkipBlames(boolean)} instead
*/
@Deprecated
@DataBoundSetter
public void setBlameDisabled(final boolean blameDisabled) {
isBlameDisabled = blameDisabled;
Expand Down Expand Up @@ -233,7 +245,7 @@ static class Execution extends AnalysisExecution<AnnotatedReport> {

tool = step.getTool();
sourceCodeEncoding = step.getSourceCodeEncoding();
isBlameDisabled = step.getBlameDisabled();
isBlameDisabled = step.isSkipBlames();
filters = step.getFilters();
sourceDirectories = step.getAllSourceDirectories();
sourceCodeRetention = step.getSourceCodeRetention();
Expand Down

0 comments on commit 1aa3487

Please sign in to comment.