aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api-impl/src/main
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-10-11 13:57:27 -0500
committerSonarTech <sonartech@sonarsource.com>2019-10-12 20:21:04 +0200
commit4876424dd7c24074f4fa9fa073d7310295614179 (patch)
treef48fb58d75d644d3c1caeba756de5e9d4208abf4 /sonar-plugin-api-impl/src/main
parent403901698010a7e3899859dc3eaed32b8e9196e0 (diff)
downloadsonarqube-4876424dd7c24074f4fa9fa073d7310295614179.tar.gz
sonarqube-4876424dd7c24074f4fa9fa073d7310295614179.zip
SONAR-12427 Patterns to ignore all issues in files are not always taken into account
Diffstat (limited to 'sonar-plugin-api-impl/src/main')
-rw-r--r--sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputFile.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputFile.java b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputFile.java
index 0d019a6d29c..4d8b14c032c 100644
--- a/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputFile.java
+++ b/sonar-plugin-api-impl/src/main/java/org/sonar/api/batch/fs/internal/DefaultInputFile.java
@@ -403,6 +403,7 @@ public class DefaultInputFile extends DefaultInputComponent implements InputFile
}
public boolean isIgnoreAllIssues() {
+ checkMetadata();
return ignoreAllIssues;
}
@@ -418,6 +419,7 @@ public class DefaultInputFile extends DefaultInputComponent implements InputFile
}
public boolean isIgnoreAllIssuesOnLine(@Nullable Integer line) {
+ checkMetadata();
if (line == null || ignoreIssuesOnlineRanges == null) {
return false;
}