Zero configuration, zero set up, simply start building!
Go to DocsPluginBase createPlugin() => _ExampleLinter();
class _ExampleLinter extends PluginBase {
@override
List<LintRule> getLintRules(CustomLintConfigs configs) => [
MyCustomLintCode(),
];
}
class MyCustomLintCode extends DartLintRule {
MyCustomLintCode() : super(code: _code);
static const _code = LintCode(
name: 'my_custom_lint_code',
problemMessage: 'This is the description of our custom lint',
);
@override
void run(
CustomLintResolver resolver,
ErrorReporter reporter,
CustomLintContext context,
) {
context.registry.addVariableDeclaration((node) {
reporter.reportErrorForNode(code, node);
});
}
}
a developper tool for users of Riverpod, designed to help stop common issue and simplify repetetive tasks.
Use this packageThis is a set of rules to make classes using Equatable more maintainable.
Use this packageLinter which notifies if the user is using hardcoded strings or invalid Ditto keys
Use this package