pyramid_lint 1.4.0 copy "pyramid_lint: ^1.4.0" to clipboard
pyramid_lint: ^1.4.0 copied to clipboard

Linting tool for Dart and Flutter projects to encourage good coding practices.

Changelog #

[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_widgets now ignores static, overridden and extension methods and supports ignored_method_names option. (#24 #28)
  • Bump the minimum custom lint version to 0.6.0.

Fixed #

  • Fix false positive for prefer_declaring_const_constructors when redirecting/super constructor is not a const constructor. (#29)
  • Fix incorrect quick fix for prefer_iterable_first and prefer_iterable_last on 2D list. (#33)

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_method now supports indirect calls to MediaQuery.of(context) and MediaQuery.maybeOf(context) (#13 thanks to imsamgarg)
  • proper_controller_dispose now supports ChangeNotifier's subclasses (#14 thanks to imsamgarg)
  • Add quick fixes for proper_controller_dispose (#15 thanks to imsamgarg)

Fixed #

  • Fix boolean_prefix false positive on overridden methods (#18 thanks to imsamgarg)
  • Fix prefer_async_callback to handle cases where the type is not void (#19 thanks to imsamgarg)

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_method now supports onOffSwitchLabels and textScaler.

Fixed #

  • Fix the quick fix for prefer_void_callback, prefer_async_callback and prefer_value_changed when the function is nullable.

1.1.0 - 2023-10-19 #

Added #

  • Lint: avoid_unused_parameters`
  • Lint: prefer_async_await`
  • Lint: prefer_new_line_before_return`
  • Lint: unnecessary_nullable_return_type`

Fixed #

  • Fix pubspec.yaml description and format (#1 thanks to parlough)

1.0.0 - 2023-10-13 #

Added #

  • Lint: avoid_returning_widgets
  • Lint: boolean_prefix

Changed #

  • BREAKING: avoid_empty_block is renamed to avoid_empty_blocks.
  • BREAKING: avoid_inverted_boolean_expression is renamed to avoid_inverted_boolean_expressions.
  • BREAKING: correct_order_for_super_dispose is renamed to proper_super_dispose.
  • BREAKING: correct_order_for_super_init_state is renamed to proper_super_init_state.
  • BREAKING: proper_usage_of_expanded_and_flexible is renamed to proper_expanded_and_flexible.
  • BREAKING: proper_usage_of_from_environment is renamed to proper_from_environment.
  • BREAKING: prefer_declaring_const_constructor is renamed to prefer_declaring_const_constructors.
  • BREAKING: prefer_declaring_parameter_name is renamed to always_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-in use_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 #

  • 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 #

Added #

  • Lint: proper_usage_of_from_environment
  • Assist: wrap_with_layout_builder

Changed #

  • Assists triggered on InstanceCreationExpression are now available on new and const keywords.

Fixed #

  • Fix a bug where the fix for correct_order_for_super_dispose is not working.

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.1 - 2023-09-18 #

Fixed #

  • README.md image links.

0.1.0 - 2023-09-17 #

  • Initial release.
7
likes
0
pub points
72%
popularity

Publisher

unverified uploader

Linting tool for Dart and Flutter projects to encourage good coding practices.

Repository (GitHub)
View/report issues

Topics

#lints #analyzer

License

unknown (license)

Dependencies

analyzer, analyzer_plugin, collection, custom_lint_builder, meta, pubspec_parse, yaml

More

Packages that depend on pyramid_lint