register method

  1. @override
void register(
  1. PluginRegistry registry
)
override

Registers analysis rules, quick fixes, and assists.

Implementation

@override
void register(PluginRegistry registry) {
  registry.registerWarningRule(DocumentThrownExceptions());
  registry.registerWarningRule(ThrowingUnthrownException());
  registry.registerFixForRule(
    DocumentThrownExceptions.code,
    DocumentThrownExceptionsFix.new,
  );
  registry.registerWarningRule(ThrowsIndexUpToDate());
}