Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 9398e24

Browse files
authored
Move to latest lints, require Dart 3.1 (#106)
1 parent ed16e0d commit 9398e24

File tree

4 files changed

+9
-28
lines changed

4 files changed

+9
-28
lines changed

.github/workflows/test-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
matrix:
4848
# Add macos-latest and/or windows-latest if relevant for this package.
4949
os: [ubuntu-latest]
50-
sdk: [2.18.0, dev]
50+
sdk: [3.1.0, dev]
5151
steps:
5252
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
5353
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.10.1-wip
2+
3+
* Require Dart 3.1
4+
15
## 1.10.0
26

37
* Add a `SourceFile.codeUnits` property.

analysis_options.yaml

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://dart.dev/guides/language/analysis-options
2-
include: package:lints/recommended.yaml
2+
include: package:dart_flutter_team_lints/analysis_options.yaml
33

44
analyzer:
55
language:
@@ -9,48 +9,25 @@ analyzer:
99

1010
linter:
1111
rules:
12-
- always_declare_return_types
1312
- avoid_bool_literals_in_conditional_expressions
14-
- avoid_catching_errors
1513
- avoid_classes_with_only_static_members
16-
- avoid_dynamic_calls
1714
- avoid_private_typedef_functions
1815
- avoid_redundant_argument_values
19-
- avoid_returning_null
20-
- avoid_returning_null_for_future
2116
- avoid_returning_this
2217
- avoid_unused_constructor_parameters
2318
- avoid_void_async
2419
- cancel_subscriptions
2520
- cascade_invocations
26-
- comment_references
27-
- directives_ordering
2821
- join_return_with_assignment
29-
- lines_longer_than_80_chars
3022
- literal_only_boolean_expressions
3123
- missing_whitespace_between_adjacent_strings
3224
- no_adjacent_strings_in_list
33-
- omit_local_variable_types
34-
- only_throw_errors
3525
- package_api_docs
36-
- prefer_asserts_in_initializer_lists
37-
- prefer_const_constructors
3826
- prefer_const_declarations
3927
- prefer_expression_function_bodies
4028
- prefer_final_locals
41-
- prefer_relative_imports
42-
- prefer_single_quotes
43-
- sort_pub_dependencies
44-
- test_types_in_equals
45-
- throw_in_finally
46-
- type_annotate_public_apis
47-
- unawaited_futures
4829
- unnecessary_await_in_return
49-
- unnecessary_lambdas
50-
- unnecessary_parenthesis
5130
- unnecessary_raw_strings
52-
- unnecessary_statements
5331
- use_if_null_to_convert_nulls_to_bools
5432
- use_raw_strings
5533
- use_string_buffers
56-
- use_super_parameters

pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: source_span
2-
version: 1.10.0
2+
version: 1.10.1-wip
33
description: >-
44
Provides a standard representation for source code locations and spans.
55
repository: https://github.com/dart-lang/source_span
66

77
environment:
8-
sdk: ">=2.18.0 <3.0.0"
8+
sdk: ^3.1.0
99

1010
dependencies:
1111
collection: ^1.15.0
1212
path: ^1.8.0
1313
term_glyph: ^1.2.0
1414

1515
dev_dependencies:
16-
lints: ^2.0.0
16+
dart_flutter_team_lints: ^2.0.0
1717
test: ^1.16.0

0 commit comments

Comments
 (0)