Interface Rules


  • @Deprecated
    @ScannerSide
    @Immutable
    public interface Rules
    Deprecated.
    since 7.4 we plan to stop loading rules on scanner side
    Searches for rules. This component is available by dependency injection. It must not be extended by plugins.
    Since:
    4.2
    • Method Detail

      • find

        @CheckForNull
        Rule find​(RuleKey key)
        Deprecated.
        Get a rule by its key. Returns null if rule does not exist.
      • findAll

        java.util.Collection<Rule> findAll()
        Deprecated.
      • findByRepository

        java.util.Collection<Rule> findByRepository​(java.lang.String repository)
        Deprecated.
        Get the rules of the given repository. Returns an empty collection if the repository does not exist.
      • findByInternalKey

        java.util.Collection<Rule> findByInternalKey​(java.lang.String repository,
                                                     java.lang.String internalKey)
        Deprecated.
        Since:
        5.2