registerLintRule abstract method

void registerLintRule(
  1. AbstractAnalysisRule rule
)

Registers this rule with the analyzer's rule registry.

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

Use registerWarningRule for rules that are enabled by default.

Implementation

void registerLintRule(AbstractAnalysisRule rule);