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: 'JsonParserLinterPlugin',
  configLoader: JsonParserLinterConfigLoader(),
).addLintRule(JsonParserRequirementRule.new).build();