diff --git a/CHANGELOG.md b/CHANGELOG.md index cec7bcf..f9df08d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.0.0 + +First stable release of `strict`. + +- Added `deprecated_consistency`, `use_if_null_to_convert_nulls_to_bools` and `use_named_constants` (all unreleased +yet); +- Removed `avoid_as`. + ## 1.0.0-nullsafety.1 - Enabled `implicit-casts`; - Disabled `avoid_as`, `prefer_expression_function_bodies`, `sort_pub_dependencies` and diff --git a/README.md b/README.md index efb5f1e..7085f7a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add this package to your `dev_dependencies` in your `pubspec.yaml`: ```yaml dev_dependencies: - strict: ^1.0.0-nullsafety + strict: ^1.0.0 ``` and the following to your `analysis_options.yaml` (create one in the root of your project if you don't diff --git a/lib/all_rules.yaml b/lib/all_rules.yaml index 12262c7..c283e60 100644 --- a/lib/all_rules.yaml +++ b/lib/all_rules.yaml @@ -4,7 +4,7 @@ # # It's also important to keep updating this list based on the `yaml` above. # -# Last updated version: 0.1.129 | 15/02/2021 (DD/MM/YYYY) +# Last updated version: 1.0.0 | 12/03/2021 (DD/MM/YYYY) linter: rules: - always_declare_return_types @@ -15,7 +15,6 @@ linter: - always_use_package_imports - annotate_overrides - avoid_annotating_with_dynamic - - avoid_as - avoid_bool_literals_in_conditional_expressions - avoid_catches_without_on_clauses - avoid_catching_errors @@ -30,6 +29,7 @@ linter: - avoid_implementing_value_types - avoid_init_to_null - avoid_js_rounded_ints + - avoid_multiple_declarations_per_line - avoid_null_checks_in_equality_operators - avoid_positional_boolean_parameters - avoid_print @@ -64,6 +64,7 @@ linter: - constant_identifier_names - control_flow_in_finally - curly_braces_in_flow_control_structures + - deprecated_consistency - diagnostic_describe_all_properties - directives_ordering - do_not_use_environment @@ -176,9 +177,11 @@ linter: - unsafe_html - use_full_hex_values_for_flutter_colors - use_function_type_syntax_for_parameters + - use_if_null_to_convert_nulls_to_bools - use_is_even_rather_than_modulo - use_key_in_widget_constructors - use_late_for_private_fields_and_variables + - use_named_constants - use_raw_strings - use_rethrow_when_possible - use_setters_to_change_properties diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 6c0fdfa..d401bab 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -36,8 +36,6 @@ linter: - always_use_package_imports - annotate_overrides - avoid_annotating_with_dynamic - # Will soon be removed. - # - avoid_as - avoid_bool_literals_in_conditional_expressions - avoid_catches_without_on_clauses # Read more why we should use Exceptions to be caught instead of @@ -61,6 +59,8 @@ linter: - avoid_implementing_value_types - avoid_init_to_null - avoid_js_rounded_ints + # TODO: Unreleased, enable when available + # - avoid_multiple_declarations_per_line - avoid_null_checks_in_equality_operators - avoid_positional_boolean_parameters - avoid_print @@ -102,6 +102,8 @@ linter: - constant_identifier_names - control_flow_in_finally - curly_braces_in_flow_control_structures + # TODO: Unreleased, enable when available + # - deprecated_consistency # TODO: Not quite sure yet, as I have never used this before. # - diagnostic_describe_all_properties - directives_ordering @@ -237,6 +239,8 @@ linter: - unsafe_html - use_full_hex_values_for_flutter_colors - use_function_type_syntax_for_parameters + # TODO: Unreleased, enable when available + # - use_if_null_to_convert_nulls_to_bools - use_is_even_rather_than_modulo # While keys can be used for a couple of reasons, like reusing/reordering widgets of the same class, requiring it # for all Widgets may not reflect all of the existing Widget's use-cases. @@ -244,6 +248,8 @@ linter: # throughout the app lifecycle. # - use_key_in_widget_constructors - use_late_for_private_fields_and_variables + # TODO: Unreleased, enable when available + # - use_named_constants - use_raw_strings - use_rethrow_when_possible - use_setters_to_change_properties diff --git a/pubspec.yaml b/pubspec.yaml index 3face61..21172b5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: strict -version: 1.0.0-nullsafety.1 +version: 1.0.0 description: A heavily opinionated analysis_options for Dart/Flutter projects with strict - but justified - lint rules repository: https://github.com/olmps/strict issue_tracker: https://github.com/olmps/strict/issues environment: - sdk: ">=2.12.0-0 <3.0.0" + sdk: ">=2.12.0 <3.0.0"