Skip to content

Commit b2849ce

Browse files
Updated the lints for Flutter 3.19 and metrics 5.7.6 (#20)
* Updated FVM config Updated Flutter version * Updated project dependencies * Updated the package to Flutter 3.19
1 parent c10c967 commit b2849ce

File tree

8 files changed

+39
-9
lines changed

8 files changed

+39
-9
lines changed

.fvmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"flutter": "3.19.6",
3+
"flavors": {}
4+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ pubspec.lock
2727
.dart_tool
2828
.packages
2929
build/
30+
31+
# FVM Version Cache
32+
.fvm/

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"dart.flutterSdkPath": ".fvm/versions/3.19.6"
3+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1+
## 1.19.0
2+
3+
* Lints from dart_metrics version 5.7.6
4+
* Lints for Flutter 3.19.6 and Dart 3.3.4
5+
* Added separate lints config for Flutter & Dart packages
6+
* :warning: This version is based on discontinued DCM version
7+
18
## 1.16.0
9+
210
* Lints from dart_metrics version 5.7.6
311
* Lints for Flutter 3.16.2 and Dart 3.2.2
412
* :warning: This version is based on discontinued DCM version
513

614
## 1.13.2
15+
716
* Lints from dart_metrics version 5.7.6
817
* Lints for Flutter 3.13.0 and Dart 3.0.6
918
* :warning: This version is based on discontinued DCM version
1019

1120
## 1.10.0
21+
1222
* Lints from dart_metrics version 5.7.3
1323
* Lints for Flutter 3.10.0 and Dart 3.0.0
1424
* Removed `implicit-casts` and `implicit-dynamic` rules deprecated in Dart 3

example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: lint_quido_example
2-
version: 1.16.0
2+
version: 1.19.0
33
publish_to: none
44

55
environment:
6-
sdk: ">=3.2.2 <4.0.0"
7-
flutter: ">=3.16.2"
6+
sdk: ">=3.3.0 <4.0.0"
7+
flutter: ">=3.19.6"
88

99
dependencies:
1010
lint_quido:

lib/miquido_lints.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ linter:
2626
- always_declare_return_types
2727
- always_put_control_body_on_new_line
2828
- always_put_required_named_parameters_first
29-
- always_require_non_null_named_parameters
3029
# - always_specify_types - Incompatible with avoid_types_on_closure_parameters, which we prefer
3130
- always_use_package_imports
3231
- annotate_overrides
@@ -56,8 +55,6 @@ linter:
5655
- avoid_relative_lib_imports
5756
- avoid_renaming_method_parameters
5857
- avoid_return_types_on_setters
59-
- avoid_returning_null
60-
- avoid_returning_null_for_future
6158
- avoid_returning_null_for_void
6259
- avoid_returning_this
6360
- avoid_setters_without_getters
@@ -114,6 +111,7 @@ linter:
114111
# - lines_longer_than_80_chars - In Miquido there are two teams: 100 or 120. One of them is wrong.
115112
- literal_only_boolean_expressions
116113
- matching_super_parameters
114+
# - missing_code_block_language_in_doc_comment - currently experimental and not yet available in a stable SDK.
117115
- missing_whitespace_between_adjacent_strings
118116
- no_adjacent_strings_in_list
119117
- no_default_cases
@@ -195,6 +193,7 @@ linter:
195193
- type_init_formals
196194
- type_literal_in_constant_pattern
197195
- unawaited_futures
196+
# - unintended_html_in_doc_comment - currently experimental and not yet available in a stable SDK.
198197
- unnecessary_await_in_return
199198
- unnecessary_brace_in_string_interps
200199
- unnecessary_breaks
@@ -205,6 +204,7 @@ linter:
205204
- unnecessary_lambdas
206205
- unnecessary_late
207206
- unnecessary_library_directive
207+
# - unnecessary_library_name - currently experimental and not yet available in a stable SDK.
208208
- unnecessary_new
209209
- unnecessary_null_aware_assignments
210210
- unnecessary_null_aware_operator_on_extension_on_nullable

lib/miquido_package_lints.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This set of lints builds on top of `package:lints/core.yaml`.
2+
# It includes lints dedicated to the Flutter and Dart packages.
3+
4+
include: package:lint_quido/miquido_lints.yaml
5+
6+
linter:
7+
rules:
8+
always_use_package_imports: false
9+
prefer_relative_imports: true
10+
public_member_api_docs: true

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lint_quido
2-
version: 1.16.0
2+
version: 1.19.0
33
description: Collection of Flutter lints that we use and follow in Miquido
44
repository: https://github.com/miquido/lint_quido
55
issue_tracker: https://github.com/miquido/lint_quido/issues
@@ -11,8 +11,8 @@ topics:
1111
- lints
1212

1313
environment:
14-
sdk: ">=3.2.2 <4.0.0"
15-
flutter: ">=3.16.2"
14+
sdk: ">=3.3.4 <4.0.0"
15+
flutter: ">=3.19.6"
1616

1717
platforms:
1818
android:

0 commit comments

Comments
 (0)