- Fix pub.dev analysis issue
- Added
named_parameters_orderingrule. - Upgraded to analyzer: ^8.4.0 and custom_lint_builder: ^0.8.1
- Added
allow_with_commentsparameter forno_empty_blocklint. - Added extension support for
avoid_using_api - Added
exclude_entityparameter forprefer_match_file_namelint. It is now possible to configure this lint to ignoreenum,extensionandmixindeclarations viaanalysis_options.yaml.
- Added
excludeparameter for the following lints:avoid_returning_widgetsavoid_unused_parameterscyclomatic_complexityfunction_lines_of_codeno_empty_blocnumber_of_parameters
- BREAKING CHANGE: Renamed
excludeNamesparameter toexcludeforfunction_lines_of_codelint. - Fixed an issue with
prefer_early_retrunfor throw expression number_of_parameterslint: addedcopyWithto the default exclude list.- Update dependencies:
- Update min Dart SDK constraint to 3.5.0
- Update
analyzerdependency to 7.1.0 - Update
custom_lint_builderdependency to 0.7.1
- Replace deprecated whereNotNull()
- Remove LintCode from documentation to improve scores and make it clearer
- Fix LintCode issue
- Added
avoid_final_with_getterrule - Improve
avoid_late_keyword-ignored_typesto support ignoring subtype of the node type (#157) - Abstract methods should be omitted by
proper_super_calls(#159) - Add a rule prefer_guard_clause for reversing nested if statements (#91)
- add exclude params support to avoid_returning_widgets rule (#131)
- add quick fix to avoid_final_with_getter (#164)
- Renamed
avoid_debug_printtoavoid_debug_print_in_release - The
avoid_debug_print_in_releaseno longer reports a warning if thedebugPrintcall is wrapped in a!kReleaseModecheck. - Update custom_lints to work with newer Flutter
- Added
avoid_debug_printrule - Fixed an issue with no_magic_number lint
- Fixed
avoid_unused_parametersto report positional parameters from typedef if their name are not underscores. - Improvement for
avoid_returning_widgetlint:- ignores methods that override ones that return widget (build() for example)
- no longer allows returning widgets from methods/functions named build
- Fixed unexpected avoid_unnecessary_type_assertions
- Added
excludeNamesparam forfunction_lines_of_codelint - Improved
avoid_unrelated_type_assertionsto support true and false results - Set default
cyclomatic_complexityto 10 (#146) Credits: Arthur Miranda (https://github.com/arthurbcd)
- Removed deprecated lints:
always_require_non_null_named_parametersavoid_returning_null_for_future
- Bumped custom_lint package to 0.6.0 version
- Moved implementation into the
srcfolder
- Add example readme
- Update dependencies
- Remove DCM as a dependency
- Add
custom_lintand integrate/redo lints from DCM usingcustom_lint:- avoid_global_state
- avoid_late_keyword
- avoid_non_null_assertion
- avoid_returning_widgets
- avoid_unnecessary_setstate
- avoid_unnecessary_type_assertions
- avoid_unnecessary_type_casts
- avoid_unrelated_type_assertions
- avoid_unused_parameters
- avoid_using_api Credits: getBoolean (https://github.com/getBoolean)
- cyclomatic_complexity
- double_literal_format
- function_lines_of_code
- member_ordering
- newline_before_return
- no_empty_block
- no_equal_then_else
- no_magic_number
- number_of_parameters
- prefer_conditional_expressions
- prefer_first
- prefer_last
- prefer_match_file_name
- proper_super_calls
- Add rules
avoid_final_parametersconditional_uri_does_not_existno_leading_underscores_for_library_prefixesno_leading_underscores_for_local_identifiersnoop_primitive_operationsprefer_adjacent_string_concatenationprefer_foreachsecure_pubspec_urlssized_box_shrink_expandunnecessary_breaksunnecessary_lambdasunnecessary_to_list_in_spreadsuse_raw_strings
- Bump minimum supported sdk to
3.0.0
- Add rules
use_super_parametersalways_put_required_named_parameters_firstavoid_redundant_argument_values
- Lock DCM version as they switch to proprietary license.
- Update
dart_code_metricsdependency to 5.7.3 - Rename deprecated
member-ordering-extendedtomember-ordering - Add rule for widgets methods order configuration:
- initState
- build
- didChangeDependencies
- didUpdateWidget
- deactivate
- dispose
- Add support for Dart 3
- Disabe invariant_booleans as it is deprecated in Flutter 3.7
- enable use_colored_box & use_decorated_box + add more comments about specific lints
- Update to the latest DCM to make sure that it works with latest flutter.
- Disabe do_not_use_environment as we need to for Flutter for web
- Update
dart_code_metricsdependency to 4.10.1 - Ignore
mockitomocks generated to be alongside source test files
- Remove
diagnostic_describe_all_propertiesrule - Disable cyclomatic complexity metric for tests
- Exclude generated files
- Add more useful DCM rules.
- Add a separate anayisis options file for tests
- Remove the
sort_constructors_firstrule
- Set maximum method length to 200
- Set maximum parameters list length to 7
- Configure rules based on Flutter 2.5 (Dart 2.14.4)
- Updated readme
- Preview