Class RulesDefinition.Context

  • Enclosing interface:
    RulesDefinition

    public static class RulesDefinition.Context
    extends java.lang.Object
    Instantiated by core but not by plugins, except for their tests.
    • Constructor Detail

      • Context

        public Context()
    • Method Detail

      • createExternalRepository

        public RulesDefinition.NewRepository createExternalRepository​(java.lang.String engineId,
                                                                      java.lang.String language)
        Creates a repository of rules from external rule engines. The repository key will be "external_[engineId]".
        Since:
        7.2
      • extendedRepositories

        @Deprecated
        public java.util.List<RulesDefinition.ExtendedRepository> extendedRepositories​(java.lang.String repositoryKey)
        Deprecated.
        returns empty list since 5.2. Concept of "extended repository" was misleading and not valuable. Simply declare repositories and use repositories(). See http://jira.sonarsource.com/browse/SONAR-6709
      • extendedRepositories

        @Deprecated
        public java.util.List<RulesDefinition.ExtendedRepository> extendedRepositories()
        Deprecated.
        returns empty list since 5.2. Concept of "extended repository" was misleading and not valuable. Simply declare repositories and use repositories(). See http://jira.sonarsource.com/browse/SONAR-6709
      • setCurrentPluginKey

        public void setCurrentPluginKey​(@Nullable
                                        java.lang.String pluginKey)