DRocketLintsPlugin class

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

  • LinqClosureRuled_rocket_untranslated_closure_linq with associated LinqClosureFix ("Rewrite with Expr.lambda")
  • NPlusOneRuled_rocket_n_plus_one (no fix yet; the fix is structural — add .include_<T>() at the call site — which is too risky to auto-apply)

The plugin runs in its own isolate inside the Dart analysis server. Lints are surfaced by dart analyze and the IDE.

Inheritance
  • Object
  • Plugin
  • DRocketLintsPlugin

Constructors

DRocketLintsPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
A user-visible name for this plugin, used for error-reporting and insights-reporting purposes.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(PluginRegistry registry) → void
Registers analysis rules, quick fixes, and assists.
override
shutDown() FutureOr<void>
inherited
start() FutureOr<void>
Initializes any necessary start-up state that is required for this plugin to run.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited