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 either RulesDefinitionExtension or RulesDefinition.
    • 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 implement RulesDefinitionExtension instead of RulesDefinition).
        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