Skip to main content

twk_lints 0.3.0 copy "twk_lints: ^0.3.0" to clipboard
twk_lints: ^0.3.0 copied to clipboard

An analyzer plugin with lints and assists for apps built on twk.

example/README.md

Using twk_lints #

An app built on twk takes the plugin as a dev dependency:

# pubspec.yaml
dev_dependencies:
  twk_lints: ^0.3.0

and includes its recommended set, every rule on:

# analysis_options.yaml
include: package:twk_lints/recommended.yaml

dart analyze and the editor then report what the rules find, such as a setState that may run after the state was disposed:

Future<void> _load() async {
  final items = await fetch();
  setState(() => _items = items); // set_state_after_dispose
}

and the editor offers the plugin's fixes (Add 'if (!mounted) return;') and assists (wrap a widget, extract one, convert a stateless widget to a stateful one) at the cursor.

1
likes
160
points
1.13k
downloads

Documentation

API reference

Publisher

verified publisherpro100.dev

Weekly Downloads

An analyzer plugin with lints and assists for apps built on twk.

Repository (GitHub)
View/report issues
Contributing

Topics

#lints #analyzer #terminal #tui

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on twk_lints