aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-01-15 23:50:31 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-01-15 23:50:31 +0100
commit445ac3e5a16c86d8906e82567657fefdb30d50e1 (patch)
treeb14ed1fb5a050b7d3890374b14a629ae77f463e5 /sonar-plugin-api
parenta42dd4d2b9d0eafe67bd514d56f0ab4ffc8ddbea (diff)
downloadsonarqube-445ac3e5a16c86d8906e82567657fefdb30d50e1.tar.gz
sonarqube-445ac3e5a16c86d8906e82567657fefdb30d50e1.zip
SONAR-5077 Add option to import all files even if no language
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java5
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputFile.java6
2 files changed, 9 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
index 38626a5c126..30e727324ad 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java
@@ -552,4 +552,9 @@ public interface CoreProperties {
* @since 5.0
*/
String SCM_PROVIDER_KEY = "sonar.scm.provider";
+
+ /**
+ * @since 5.1
+ */
+ String INDEX_ALL_FILES_KEY = "sonar.index_all_files";
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputFile.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputFile.java
index 357a7c99103..2cf8ee33c37 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputFile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputFile.java
@@ -19,6 +19,8 @@
*/
package org.sonar.api.batch.fs;
+import javax.annotation.CheckForNull;
+
import java.io.File;
/**
@@ -70,9 +72,9 @@ public interface InputFile extends InputPath {
File file();
/**
- * Language, for example "java" or "php". It's automatically guessed if it is not
- * set in project settings.
+ * Language, for example "java" or "php". Can be null if indexation of all files is enabled and no language claims to support the file.
*/
+ @CheckForNull
String language();
/**