registerWarningRule abstract method

void registerWarningRule(
  1. AbstractAnalysisRule rule
)

Registers this rule with the analyzer's rule registry.

Warning rules are enabled by default and can be disabled using the analysis options file.

Use registerLintRule for rules that are disabled by default.

Implementation

void registerWarningRule(AbstractAnalysisRule rule);