main library

2.0.0 — entry point for the official analysis_server_plugin system.

The Dart analysis server auto-discovers this file by finding the plugin top-level variable (which it imports and reads at startup). The plugin then registers both lint rules via register(PluginRegistry).

History

In 1.x + custom_lint_builder era, the entry point was lib/d_rocket_lints.dart exporting a DRocketLintsPlugin.createPlugin() top-level function. With the migration to analysis_server_plugin (Phase 8.5, 2026-06-22), the entry point moved to lib/main.dart and the plugin object is a top-level variable.

The old lib/d_rocket_lints.dart is kept as a re-export shim for backward compatibility with consumers that imported package:d_rocket_lints/d_rocket_lints.dart.

Classes

DRocketLintsPlugin
The d_rocket analyzer plugin. Registers both lint rules and one IDE quick-fix:

Properties

plugin DRocketLintsPlugin
The top-level plugin instance. The analysis server auto-discovers this variable by package:d_rocket_lints/main.dart and calls register once.
final