From 42e971f0702e1a8721f398cf8cd2b2c241e4b5c0 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Tue, 27 Feb 2024 10:07:30 +0100 Subject: [PATCH] Use the correct property name `skipBlames`. --- .../plugins/analysis/core/steps/ScanForIssuesStep.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java b/plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java index 6d8ac823cf..4b89797ed9 100644 --- a/plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java +++ b/plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java @@ -120,14 +120,13 @@ 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 setBlameDisabled(final boolean blameDisabled) { - isBlameDisabled = blameDisabled; + public void setSkipBlames(final boolean skipBlames) { + isBlameDisabled = skipBlames; } /** @@ -233,7 +232,7 @@ static class Execution extends AnalysisExecution { tool = step.getTool(); sourceCodeEncoding = step.getSourceCodeEncoding(); - isBlameDisabled = step.getBlameDisabled(); + isBlameDisabled = step.isSkipBlames(); filters = step.getFilters(); sourceDirectories = step.getAllSourceDirectories(); sourceCodeRetention = step.getSourceCodeRetention();