pyramid_lint 2.3.0
pyramid_lint: ^2.3.0 copied to clipboard
Linting tool for Dart and Flutter projects to encourage good coding practices.
Changelog #
2.1.0 - 2025-05-31 #
2.0.3 - 2025-03-15 #
2.0.2 - 2025-02-05 #
Changed #
- Require Dart 3.6.0.
- Bump the minimum
analyzerversion to 7.0.0. - Bump the minimum
custom_lint_builderversion to 0.7.0. - Bump the minimum
pubspec_parseversion to 1.4.0.
2.0.1 - 2024-08-16 #
Changed #
- Bump the minimum
analyzerversion to 6.6.0. - Bump the minimum
custom_lint_builderversion to 0.6.5. avoid_public_members_in_statesnow ignores public fields and methods with@visibleForTestingannotations.
Fixed #
- Fix false positive for
dispose_controllerswhen dispose is already called via cascade notation.
2.0.0 - 2024-03-06 #
Added #
- Add support for changing the lint severity. (#38)
- Lint:
avoid_mutable_global_variables(#37) - Lint:
avoid_redundant_pattern_field_names(#40) - Lint:
avoid_positional_fields_in_records(#41) - Lint:
class_members_ordering(#42) - Assist:
wrap_with_listenable_builder(#26) thanks to imsamgarg)
Changed #
- BREAKING: All lints are now disabled by default. To enable a specific lint, add the lint in the
analysis_options.yamlfile. (#39) - BREAKING:
avoid_duplicate_importhas been renamed tono_duplicate_imports. - BREAKING:
prefer_declaring_const_constructorshas been renamed toprefer_const_constructor_declarations. - BREAKING:
doc_comments_before_annotationshas been renamed toalways_put_doc_comments_before_annotations. - BREAKING:
boolean_prefixhas been renamed toboolean_prefixes. - BREAKING:
always_declare_parameter_nameshas been renamed toalways_specify_parameter_names. - BREAKING:
prefer_spacerhas been renamed touse_spacer. - BREAKING:
proper_controller_disposehas been renamed todispose_controllers. - BREAKING:
avoid_widget_state_public_membershas been renamed toavoid_public_members_in_states. - BREAKING:
proper_edge_insets_constructorhas been renamed toproper_edge_insets_constructors. - BREAKING:
prefer_dedicated_media_query_methodhas been renamed toprefer_dedicated_media_query_functions. - Bump the minimum
custom_lint_builderversion to 0.6.2. - Fix false positive for
avoid_nested_ifwhen the if statement is a else if statement. (#44)
Removed #
- BREAKING: Remove
prefer_value_changedlint. (#45)
1.5.0 - 2024-02-14 #
1.4.0 - 2024-02-07 #
Added #
- Lint:
avoid_nested_if(#25) - Lint:
max_switch_cases(#30) - Assist:
wrap_all_children_with_expanded(#27)
Changed #
avoid_returning_widgetsnow ignores static, overridden and extension methods and supportsignored_method_namesoption. (#24 #28)- Bump the minimum custom lint version to 0.6.0.
Fixed #
1.3.0 - 2024-01-15 #
Added #
- Lint:
no_self_comparisons(#9) - Lint:
avoid_widget_state_public_members(#10) - Assist:
wrap_with_value_listenable_builder(#16 thanks to imsamgarg)
Changed #
prefer_dedicated_media_query_methodnow supports indirect calls toMediaQuery.of(context)andMediaQuery.maybeOf(context)(#13 thanks to imsamgarg)proper_controller_disposenow 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 #
- Lint:
avoid_abbreviations_in_doc_comments - Lint:
doc_comments_before_annotations - Lint:
prefer_library_prefixes
Changed #
- Disable Flutter lints and assists for Dart projects.
- Improve lints' messages.
- Improve documentation.
prefer_dedicated_media_query_methodnow supportsonOffSwitchLabelsandtextScaler.
Fixed #
- Fix the quick fix for
prefer_void_callback,prefer_async_callbackandprefer_value_changedwhen the function is nullable.
1.1.0 - 2023-10-19 #
1.0.0 - 2023-10-13 #
Added #
- Lint:
avoid_returning_widgets - Lint:
boolean_prefix
Changed #
- BREAKING:
avoid_empty_blockhas been renamed toavoid_empty_blocks. - BREAKING:
avoid_inverted_boolean_expressionhas been renamed toavoid_inverted_boolean_expressions. - BREAKING:
correct_order_for_super_disposehas been renamed toproper_super_dispose. - BREAKING:
correct_order_for_super_init_statehas been renamed toproper_super_init_state. - BREAKING:
proper_usage_of_expanded_and_flexiblehas been renamed toproper_expanded_and_flexible. - BREAKING:
proper_usage_of_from_environmenthas been renamed toproper_from_environment. - BREAKING:
prefer_declaring_const_constructorhas been renamed toprefer_declaring_const_constructors. - BREAKING:
prefer_declaring_parameter_namehas been renamed toalways_declare_parameter_names. proper_edge_insets_constructornow works when arguments are variables.proper_edge_insets_constructoris no longer triggered if all the arguments are 0 in flavor of the built-inuse_named_constants.
Fixed #
- Fix
prefer_underscore_for_unused_callback_parametersfalse positive on unused parameters in function declarations.
0.6.0 - 2023-10-10 #
Added #
- Lint:
avoid_dynamic - Lint:
prefer_async_callback - Lint:
prefer_value_changed - Lint:
prefer_void_callback - Lint:
prefer_underscore_for_unused_callback_parameters
0.5.0 - 2023-10-05 #
0.4.0 - 2023-09-26 #
Added #
- Lint:
avoid_duplicate_import - Lint:
max_lines_for_file - Lint:
max_lines_for_function
0.3.0 - 2023-09-25 #
Added #
- Lint:
avoid_inverted_boolean_expression - Assist:
invert_boolean_expression - Assist:
swap_then_else_expression
0.2.0 - 2023-09-21 #
Added #
- Lint:
prefer_dedicated_media_query_method - Lint:
proper_controller_dispose - Lint:
proper_edge_insets_constructor
0.1.0 - 2023-09-17 #
- Initial release.
