Skip to content

Commit

Permalink
Merge pull request #7 from olmps/v1.1.0
Browse files Browse the repository at this point in the history
v1.1.0
  • Loading branch information
matuella authored Apr 7, 2021
2 parents a43e580 + 0b4e626 commit 1a1e9e2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.1.0

- Added `library_private_types_in_public_api`, `prefer_null_aware_method_calls`, `require_trailing_commas` and
`use_build_context_synchronously` (all unreleased yet);
- Disabled `one_member_abstracts`.

## 1.0.0

First stable release of `strict`.
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
strict: ^1.1.0
```
and the following to your `analysis_options.yaml` (create one in the root of your project if you don't
Expand Down
6 changes: 5 additions & 1 deletion 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: 1.0.0 | 12/03/2021 (DD/MM/YYYY)
# Last updated version: 1.2.1 | 07/04/2021 (DD/MM/YYYY)
linter:
rules:
- always_declare_return_types
Expand Down Expand Up @@ -82,6 +82,7 @@ linter:
- leading_newlines_in_multiline_strings
- library_names
- library_prefixes
- library_private_types_in_public_api
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
Expand Down Expand Up @@ -134,6 +135,7 @@ linter:
- prefer_is_not_operator
- prefer_iterable_whereType
- prefer_mixin
- prefer_null_aware_method_calls
- prefer_null_aware_operators
- prefer_relative_imports
- prefer_single_quotes
Expand All @@ -143,6 +145,7 @@ linter:
- provide_deprecation_message
- public_member_api_docs
- recursive_getters
- require_trailing_commas
- sized_box_for_whitespace
- slash_for_doc_comments
- sort_child_properties_last
Expand Down Expand Up @@ -175,6 +178,7 @@ linter:
- unnecessary_this
- unrelated_type_equality_checks
- unsafe_html
- use_build_context_synchronously
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
- use_if_null_to_convert_nulls_to_bools
Expand Down
9 changes: 9 additions & 0 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Evaluate the rules using the catalogue: https://dart-lang.github.io/linter/lints/
analyzer:
# Both of the strong-mode lints are really impactful throughout the project, and both of these might be rules that you
# may want to modify to `true` if they are too severe.
Expand Down Expand Up @@ -122,6 +123,8 @@ linter:
- leading_newlines_in_multiline_strings
- library_names
- library_prefixes
# TODO: Unreleased, not even in the catalogue yet, must wait to evaluate
# - library_private_types_in_public_api
# Possibly one of the most discussed topics in code-styling. We prefer to keep it at 120, due to several reasons.
# This is a totally biased opinion and all three 80, 100 and 120 line lenghts have good/valid points. Although,
# when exceeding 120, it becomes really hard to read.
Expand Down Expand Up @@ -210,6 +213,8 @@ linter:
- prefer_is_not_operator
- prefer_iterable_whereType
- prefer_mixin
# TODO: Unreleased, not even in the catalogue yet, must wait to evaluate
# - prefer_null_aware_method_calls
- prefer_null_aware_operators
# Contradicts with `always_use_package_imports`. Relative imports can get really messy to read if the codebase
# is slightly complex, frequently seeing things like: '../../../../../../importedFile.dart'. We prefer a more
Expand All @@ -224,6 +229,8 @@ linter:
# to simply conform to this rule.
# - public_member_api_docs
- recursive_getters
# TODO: Unreleased, not even in the catalogue yet, must wait to evaluate
# - require_trailing_commas
- sized_box_for_whitespace
- slash_for_doc_comments
- sort_child_properties_last
Expand Down Expand Up @@ -260,6 +267,8 @@ linter:
- unnecessary_this
- unrelated_type_equality_checks
- unsafe_html
# TODO: Unreleased and Experimental, although it looks really nice - so we should enable when released
# - use_build_context_synchronously
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
# TODO: Unreleased, enable when available
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: strict
version: 1.0.0
version: 1.1.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
Expand Down

0 comments on commit 1a1e9e2

Please sign in to comment.