LintRule constructor

const LintRule({
  1. required LintCode code,
})

A base class for plugins to define emit warnings/errors/infos.

For creating assists inside Dart files, see DartLintRule. Suclassing LintRule can be helpful if you wish to implement assists for non-Dart files (yaml, json, ...)

For usage information, see https://github.com/invertase/dart_custom_lint/blob/main/docs/lints.md

Implementation

const LintRule({required this.code});