flutter_gen_linter 1.0.0+2 copy "flutter_gen_linter: ^1.0.0+2" to clipboard
flutter_gen_linter: ^1.0.0+2 copied to clipboard

A set of simple linter rules to encourage the use of flutter_gen.

A set of simple linter rules to encourage the use of flutter_gen.

Features #

While using flutter_gen I wanted to ensure it was used consistently thoughout the project, so this is a set of custom_lint rules to ensure that.

Getting started #

In your pubspec.yaml add:

dev_dependencies:
  custom_lint: ^0.5.0
  flutter_gen_linter: ^1.0.0

and create a analysis_options.yaml and add:

analyzer:
  plugins:
    - custom_lint

Now your IDE should show the lint warnings, like so:

Screenshot of VS Code showing a lint warning

or you can manually run them from the command line:

$ dart run custom_lint

lib/your_file.dart:61:18 • AssetImage or Image.asset should not be used directly instead use Assets.images... • asset_image • INFO
0
likes
140
pub points
0%
popularity
screenshot

Publisher

verified publisherbramp.net

A set of simple linter rules to encourage the use of flutter_gen.

Repository (GitHub)
View/report issues

Topics

#lints

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, analyzer_plugin, custom_lint, custom_lint_builder

More

Packages that depend on flutter_gen_linter