Skip to content

Commit 9ad6888

Browse files
authored
os_detect: bump lints and SDK versions (#713)
...and other cleanup across the board - drop deprecated lints - drop redundant lints - tiny bump to min test version using --tighten pub command
1 parent 2a436d5 commit 9ad6888

19 files changed

+14
-21
lines changed

.github/workflows/os_detect.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
matrix:
5757
# Add macos-latest and/or windows-latest if relevant for this package.
5858
os: [ubuntu-latest, windows-latest, macos-latest]
59-
sdk: [3.0.0, dev]
59+
sdk: [3.5, dev]
6060
steps:
6161
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
6262
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672

pkgs/args/analysis_options.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ linter:
1010
- missing_whitespace_between_adjacent_strings
1111
- no_adjacent_strings_in_list
1212
- no_runtimeType_toString
13-
- package_api_docs
14-
- unnecessary_await_in_return

pkgs/args/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ environment:
1313

1414
dev_dependencies:
1515
dart_flutter_team_lints: ^3.0.0
16-
test: ^1.16.0
16+
test: ^1.16.6

pkgs/async/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ linter:
1818
- missing_whitespace_between_adjacent_strings
1919
- no_adjacent_strings_in_list
2020
- no_runtimeType_toString
21-
- package_api_docs

pkgs/collection/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ linter:
1212
- missing_whitespace_between_adjacent_strings
1313
- no_adjacent_strings_in_list
1414
- no_runtimeType_toString
15-
- package_api_docs
1615
- unnecessary_await_in_return

pkgs/collection/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ environment:
1313

1414
dev_dependencies:
1515
dart_flutter_team_lints: ^3.0.0
16-
test: ^1.16.0
16+
test: ^1.16.6

pkgs/convert/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ linter:
1717
- missing_whitespace_between_adjacent_strings
1818
- no_adjacent_strings_in_list
1919
- no_runtimeType_toString
20-
- package_api_docs
2120
- prefer_const_declarations
2221
- prefer_expression_function_bodies
2322
- unnecessary_await_in_return

pkgs/crypto/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ linter:
1010
rules:
1111
- avoid_unused_constructor_parameters
1212
- cancel_subscriptions
13-
- package_api_docs

pkgs/fixnum/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ linter:
1414
- missing_whitespace_between_adjacent_strings
1515
- no_adjacent_strings_in_list
1616
- no_runtimeType_toString
17-
- package_api_docs
1817
- prefer_const_declarations
1918
- prefer_expression_function_bodies
2019
- unnecessary_raw_strings

pkgs/logging/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ linter:
2020
- missing_whitespace_between_adjacent_strings
2121
- no_adjacent_strings_in_list
2222
- no_runtimeType_toString
23-
- package_api_docs
2423
- prefer_const_declarations
2524
- prefer_expression_function_bodies
2625
- prefer_final_locals

pkgs/logging/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ environment:
1414

1515
dev_dependencies:
1616
dart_flutter_team_lints: ^3.0.0
17-
test: ^1.16.0
17+
test: ^1.16.6

pkgs/os_detect/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.3-wip
2+
3+
- Require Dart 3.5
4+
15
## 2.0.2
26

37
- Require Dart 3.0

pkgs/os_detect/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ linter:
2020
- missing_whitespace_between_adjacent_strings
2121
- no_adjacent_strings_in_list
2222
- no_runtimeType_toString
23-
- package_api_docs
2423
- prefer_const_declarations
2524
- use_raw_strings
2625

pkgs/os_detect/bin/os_detect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
/// Prints the operating system detected by the current compilation environment.
6-
library pkg.os_detect.run;
6+
library;
77

88
import 'package:os_detect/os_detect.dart' as os_detect;
99

pkgs/os_detect/lib/os_detect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
/// Information about the current operating system.
6-
library pkg.os_detect;
6+
library;
77

88
import 'src/os_override.dart';
99

pkgs/os_detect/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: os_detect
2-
version: 2.0.2
2+
version: 2.0.3-wip
33
description: Platform independent OS detection.
44
repository: https://github.com/dart-lang/core/tree/main/pkgs/os_detect
55

66
environment:
7-
sdk: ^3.0.0
7+
sdk: ^3.5.0
88

99
dependencies:
1010
meta: ^1.9.0
1111

1212
dev_dependencies:
13-
dart_flutter_team_lints: ^2.0.0
13+
dart_flutter_team_lints: ^3.0.0
1414
test: ^1.24.0

pkgs/path/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ linter:
99
- join_return_with_assignment
1010
- missing_whitespace_between_adjacent_strings
1111
- no_runtimeType_toString
12-
- package_api_docs
1312
- prefer_const_declarations
1413
- prefer_expression_function_bodies
1514
- prefer_final_locals

pkgs/platform/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ dependencies:
1111
path: ../
1212

1313
dev_dependencies:
14-
lints: ^4.0.0
14+
lints: ^5.0.0

pkgs/typed_data/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ linter:
1010
- avoid_unused_constructor_parameters
1111
- cancel_subscriptions
1212
- no_adjacent_strings_in_list
13-
- package_api_docs

0 commit comments

Comments
 (0)