register method
Registers analysis rules, quick fixes, and assists.
Implementation
@override
void register(PluginRegistry registry) {
registry.registerLintRule(InlineAsyncInBuilder());
registry.registerLintRule(RedundantNullCheck());
registry.registerFixForRule(
RedundantNullCheck.code,
RemoveRedundantNullCheckFix.new,
);
registry.registerLintRule(SwallowedException());
registry.registerFixForRule(SwallowedException.code, InsertRethrowFix.new);
registry.registerLintRule(UnlocalizedString());
// One rule, many diagnostics: each shape violation has its own code (and
// fix), all sharing the `nonstandard_nylo_page` name so a single toggle
// or `// ignore:` covers them.
registry.registerLintRule(NonstandardNyloPage());
registry.registerFixForRule(
NonstandardNyloPage.flutterWidgetBase,
ExtendNyStatefulWidgetFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.missingRoutePath,
AddRoutePathFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.routePathType,
ConvertPathToRouteViewFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.missingChild,
AddSuperChildFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.createStateOverride,
AddSuperChildFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.childInstance,
WrapChildInClosureFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.stateBase,
ExtendNyPageFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.stateNyState,
ExtendNyPageFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.stateTypeArgument,
SetStateTypeArgumentFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.initStateOverride,
ConvertInitStateToInitFix.new,
);
registry.registerFixForRule(
NonstandardNyloPage.buildOverride,
RenameBuildToViewFix.new,
);
}