Skip to main content

freezed_lint 0.1.0 copy "freezed_lint: ^0.1.0" to clipboard
freezed_lint: ^0.1.0 copied to clipboard

Linter rules for freezed.

example/README.md

Testing freezed_lint #

Files in lib/ are fixtures for the lints. Valid cases use real freezed code generation. Cases that freezed knowingly rejects live in separate *_failing.dart files, which are excluded from code generation in build.yaml and use fake generated code instead.

  • Every expected lint is marked with an // ignore: freezed_lint/<lint> comment. dart analyze --fatal-infos fails if a lint is reported without being ignored.
  • Quick-fixes are tested with snapshot testing: dart test applies each fix and compares the result with the *.fix.dart goldens. To update the goldens, run:
goldens=true dart test
8
likes
150
points
5.38k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Linter rules for freezed.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on freezed_lint