Package org.sonar.api.resources
Interface Language
-
- All Known Implementing Classes:
AbstractLanguage
@ScannerSide @ServerSide @SonarLintSide @ComputeEngineSide @ExtensionPoint public interface Language
The extension point to define a new language- Since:
- 1.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String[]
getFileSuffixes()
For example ["jav", "java"].java.lang.String
getKey()
For example "java".java.lang.String
getName()
For example "Java"default boolean
publishAllFiles()
Whether all files identified with this language should be sent to SonarQube, even if no data is reported for them
-
-
-
Method Detail
-
getKey
java.lang.String getKey()
For example "java". Should not be more than 20 chars.
-
getName
java.lang.String getName()
For example "Java"
-
getFileSuffixes
java.lang.String[] getFileSuffixes()
For example ["jav", "java"]. If empty, then all files in source directories are considered as sources.
-
publishAllFiles
default boolean publishAllFiles()
Whether all files identified with this language should be sent to SonarQube, even if no data is reported for them- Since:
- 9.3
-
-