Skip to content

Commit

Permalink
Merge pull request #4 from olmps/first-stable-release
Browse files Browse the repository at this point in the history
First stable release - v1.0.0
  • Loading branch information
matuella authored Mar 12, 2021
2 parents 0640d19 + 77f75c2 commit 1323966
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions lib/all_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -237,13 +239,17 @@ 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.
# Example: when we want to create a Widget that represents a page, which usually will only have one instance
# 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
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 1323966

Please sign in to comment.