Skip to content

Commit 331ddc3

Browse files
committed
update lints
1 parent 6ffba19 commit 331ddc3

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

analysis_options.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:lints/recommended.yaml
1+
include: package:dart_flutter_team_lints/analysis_options.yaml
22

33
analyzer:
44
language:
@@ -8,9 +8,6 @@ analyzer:
88

99
linter:
1010
rules:
11-
- always_declare_return_types
12-
- avoid_catching_errors
13-
- avoid_dynamic_calls
1411
- avoid_private_typedef_functions
1512
- avoid_redundant_argument_values
1613
- avoid_returning_null
@@ -19,33 +16,17 @@ linter:
1916
- cancel_subscriptions
2017
- cascade_invocations
2118
- comment_references
22-
- directives_ordering
2319
- join_return_with_assignment
24-
- lines_longer_than_80_chars
2520
- literal_only_boolean_expressions
2621
- missing_whitespace_between_adjacent_strings
2722
- no_adjacent_strings_in_list
2823
- no_runtimeType_toString
29-
- omit_local_variable_types
30-
- only_throw_errors
3124
- package_api_docs
32-
- prefer_asserts_in_initializer_lists
3325
- prefer_const_constructors
3426
- prefer_const_declarations
3527
- prefer_expression_function_bodies
3628
- prefer_final_locals
37-
- prefer_interpolation_to_compose_strings
3829
- prefer_relative_imports
39-
- prefer_single_quotes
4030
- require_trailing_commas
41-
- sort_pub_dependencies
4231
- test_types_in_equals
43-
- throw_in_finally
44-
- type_annotate_public_apis
45-
- unawaited_futures
46-
- unnecessary_lambdas
47-
- unnecessary_null_aware_assignments
48-
- unnecessary_parenthesis
49-
- unnecessary_statements
50-
- use_is_even_rather_than_modulo
5132
- use_string_buffers

pubspec.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ packages:
7373
url: "https://pub.dev"
7474
source: hosted
7575
version: "3.0.2"
76+
dart_flutter_team_lints:
77+
dependency: "direct dev"
78+
description:
79+
name: dart_flutter_team_lints
80+
sha256: e2f4fcafdaf0797e5af1c5c162d0b6c5025e9228ab3f95174340ed35c85dccd6
81+
url: "https://pub.dev"
82+
source: hosted
83+
version: "1.0.0"
7684
file:
7785
dependency: transitive
7886
description:
@@ -162,7 +170,7 @@ packages:
162170
source: hosted
163171
version: "4.8.0"
164172
lints:
165-
dependency: "direct dev"
173+
dependency: transitive
166174
description:
167175
name: lints
168176
sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: dartbug
22
publish_to: none
33

44
environment:
5-
sdk: '>=2.18.0 <3.0.0'
5+
sdk: '>=2.19.0 <3.0.0'
66

77
dependencies:
88
collection: ^1.16.0
@@ -11,6 +11,6 @@ dependencies:
1111
shelf: ^1.0.0
1212

1313
dev_dependencies:
14+
dart_flutter_team_lints: ^1.0.0
1415
github: ^9.0.0
15-
lints: ^2.0.0
1616
test: ^1.3.0

0 commit comments

Comments
 (0)