plugin top-level property
Plugin
plugin
final
The plugin entry point.
The Dart Analysis Server looks for a top-level field named plugin.
So, DO NOT change the variable name. See this doc for more information:
https://dart.dev/tools/analyzer-plugins.
Implementation
final plugin =
PluginBuilder(
name: 'CleanArchLinterPlugin',
configLoader: CleanArchLinterConfigLoader(),
)
.addLintRule(DartSDKImportRule.new)
.addLintRule(CrossLayerImportRule.new)
.addLintRule(ThirdPartyImportRule.new)
.build();