Package com.sonarsource.cobol.api.ast
Interface CobolCheckRepository
-
@ScannerSide @SonarLintSide @ServerSide public interface CobolCheckRepository
Extension point to execute custom rules in the SonarSource COBOL analyzer. Rule metadata should be defined with eitherRulesDefinitionExtension
orRulesDefinition
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Object>
getCheckClassesOrObjects()
Returns a collection of check classes and instance of checks.String
getRepositoryKey()
Returns the key of the repository in which the custom rules are defined.
-
-
-
Method Detail
-
getRepositoryKey
String getRepositoryKey()
Returns the key of the repository in which the custom rules are defined. If you want to have your custom rules in the same repository as the standard rules, this method should return "cobol" (and you should implementRulesDefinitionExtension
instead ofRulesDefinition
).- Returns:
- key of the rule repository
-
getCheckClassesOrObjects
Collection<Object> getCheckClassesOrObjects()
Returns a collection of check classes and instance of checks.- Returns:
- The collection of check classes
-
-