Package org.sonar.api.batch.rule
Interface Rules
-
@Deprecated @ScannerSide @Immutable public interface Rules
Deprecated.since 7.4 we plan to stop loading rules on scanner sideSearches for rules. This component is available by dependency injection. It must not be extended by plugins.- Since:
- 4.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Rule
find(RuleKey key)
Deprecated.Get a rule by its key.java.util.Collection<Rule>
findAll()
Deprecated.java.util.Collection<Rule>
findByInternalKey(java.lang.String repository, java.lang.String internalKey)
Deprecated.java.util.Collection<Rule>
findByRepository(java.lang.String repository)
Deprecated.Get the rules of the given repository.
-
-
-
Method Detail
-
find
@CheckForNull Rule find(RuleKey key)
Deprecated.Get a rule by its key. Returnsnull
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
-
-