pyramid_lint 1.3.0 pyramid_lint: ^1.3.0 copied to clipboard
Linting tool for Dart and Flutter projects to encourage good coding practices.
Changelog #
1.3.0 - 2024-01-15 #
Added #
- Add new lint
no_self_comparisons
(#9) - Add new lint
avoid_widget_state_public_members
(#10) - Add new assist
wrap_with_value_listenable_builder
(#16 thanks to imsamgarg)
Changed #
prefer_dedicated_media_query_method
now supports indirect calls toMediaQuery.of(context)
andMediaQuery.maybeOf(context)
(#13 thanks to imsamgarg)proper_controller_dispose
now supportsChangeNotifier
's subclasses (#14 thanks to imsamgarg)- Add quick fixes for
proper_controller_dispose
(#15 thanks to imsamgarg)
Fixed #
1.2.0 - 2023-11-24 #
Added #
- New lints
avoid_abbreviations_in_doc_comments
doc_comments_before_annotations
prefer_library_prefixes
Changed #
- Disable Flutter lints and assists for Dart projects.
- Improve lints' messages.
- Improve documentation.
prefer_dedicated_media_query_method
now supportsonOffSwitchLabels
andtextScaler
.
Fixed #
- Fix the quick fix for
prefer_void_callback
,prefer_async_callback
andprefer_value_changed
when the function is nullable.
1.1.0 - 2023-10-19 #
1.0.0 - 2023-10-13 #
Added #
- New lints
avoid_returning_widgets
boolean_prefix
Changed #
- BREAKING:
avoid_empty_block
is renamed toavoid_empty_blocks
. - BREAKING:
avoid_inverted_boolean_expression
is renamed toavoid_inverted_boolean_expressions
. - BREAKING:
correct_order_for_super_dispose
is renamed toproper_super_dispose
. - BREAKING:
correct_order_for_super_init_state
is renamed toproper_super_init_state
. - BREAKING:
proper_usage_of_expanded_and_flexible
is renamed toproper_expanded_and_flexible
. - BREAKING:
proper_usage_of_from_environment
is renamed toproper_from_environment
. - BREAKING:
prefer_declaring_const_constructor
is renamed toprefer_declaring_const_constructors
. - BREAKING:
prefer_declaring_parameter_name
is renamed toalways_declare_parameter_names
. proper_edge_insets_constructor
now works when arguments are variables.proper_edge_insets_constructor
is no longer triggered if all the arguments are 0 in flavor of the built-inuse_named_constants
.
Fixed #
- Fix
prefer_underscore_for_unused_callback_parameters
false positive on unused parameters in function declarations.
0.6.0 - 2023-10-10 #
Added #
- New lints
avoid_dynamic
prefer_async_callback
prefer_value_changed
prefer_void_callback
prefer_underscore_for_unused_callback_parameters
0.5.0 - 2023-10-05 #
0.4.0 - 2023-09-26 #
Added #
- New lints
avoid_duplicate_import
max_lines_for_file
max_lines_for_function
0.3.0 - 2023-09-25 #
Added #
-
New lints
avoid_inverted_boolean_expression
-
New assists
invert_boolean_expression
swap_then_else_expression
0.2.0 - 2023-09-21 #
Added #
- New lints
prefer_dedicated_media_query_method
proper_controller_dispose
proper_edge_insets_constructor
0.1.1 - 2023-09-18 #
- Fix README.md image links.
0.1.0 - 2023-09-17 #
- Initial release.