bloc_signals_lint 0.9.0
bloc_signals_lint: ^0.9.0 copied to clipboard
Custom lint rules and analyzer diagnostics for BlocSignal and CubitSignal.
Changelog #
0.9.0 #
- Staging release candidate for the 1.0.0 production milestone.
- Update
bloc_signalsdependency constraint to^0.9.0.
0.2.7 #
- Added 3 footgun prevention lint rules for stateful container lifecycles and disposal (
avoid_top_level_bloc_signal_instances,avoid_providing_existing_instance_with_create,avoid_manual_close_on_provided_bloc). - Add runnable
@examplecode blocks toAddSuperOnEventFixandPreferReadInCallbacksFix. - Add
test/src/fixes_test.dartunit test suite for IDE quick fix classes. - Update
bloc_signalsdependency to^0.2.8.
0.2.5 #
- Add comprehensive ecosystem package cross-linking table and motto to README.
- Add quick lint rule descriptions and quick-fix guides.
- Update
bloc_signalsdependency to^0.2.6.
0.2.4 #
- Tightened
analyzer(>=6.8.0 <15.0.0) andcustom_lint_builder(>=0.8.0 <0.9.0) dependency constraints to ensure full compatibility with the analyzer Element2 API and pass pub.dev lower-bound downgrade analysis.
0.2.2 #
- Added full runnable BLoC sample code in
example/example.dartdemonstrating custom lint rule invariants.
0.2.1 #
- Added example documentation and pubspec package topics to improve pub.dev score to 160/160.
0.2.0 #
- Added 3 Flutter UI lint rules:
avoid_emit_in_build: Flags state emissions (emit/add) directly inside FlutterWidget.build()methods.avoid_unmanaged_signal_effects: Flags unassignedeffect()calls created in FlutterWidgetorStatescopes.prefer_bloc_signal_provider_read_in_callbacks: Warns oncontext.watch<T>()inside callback closures (e.g.onPressed).
- Added automated IDE quick-fixes (
Cmd+./Alt+Enter):AddSuperOnEventFix: Automatically insertssuper.onEvent(event);.PreferReadInCallbacksFix: Automatically replacescontext.watch<T>()withcontext.read<T>().
0.1.0 #
- Initial release of
bloc_signals_lint. - Custom lint rules and analyzer diagnostics for
bloc_signals:avoid_duplicate_event_handlers: Flags duplicateon<E>event handler registrations.require_super_on_event: Enforcessuper.onEvent(event)calls insideonEventoverrides.avoid_stream_transformers_on_bloc_signal: Flags stream transformer method invocations directly on synchronous state containers.avoid_direct_signal_mutation_outside_bloc: Prevents external code from calling protectedemit()methods outside the state container class.