Skip to content

Commit 9371c2a

Browse files
Mark LinMark Lin
Mark Lin
authored and
Mark Lin
committed
chore: 添加代码风格检查
1 parent ed7f640 commit 9371c2a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Diff for: analysis_options.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include: package:lint/analysis_options.yaml
2+
3+
analyzer:
4+
strong-mode:
5+
implicit-casts: true
6+
enable-experiment:
7+
- extension-methods

Diff for: pubspec.lock

+9-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ packages:
6060
description: flutter
6161
source: sdk
6262
version: "0.0.0"
63+
lint:
64+
dependency: "direct dev"
65+
description:
66+
name: lint
67+
url: "https://pub.flutter-io.cn"
68+
source: hosted
69+
version: "1.5.3"
6370
matcher:
6471
dependency: transitive
6572
description:
@@ -143,5 +150,5 @@ packages:
143150
source: hosted
144151
version: "2.1.0"
145152
sdks:
146-
dart: ">=2.12.0-0.0 <3.0.0"
147-
flutter: ">=1.17.0"
153+
dart: ">=2.12.0 <3.0.0"
154+
flutter: ">=2.0.1"

Diff for: pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ homepage:
66

77
environment:
88
sdk: ">=2.7.0 <3.0.0"
9-
flutter: ">=1.17.0"
9+
flutter: ">=2.0.1"
1010

1111
dependencies:
1212
flutter:
@@ -15,6 +15,7 @@ dependencies:
1515
dev_dependencies:
1616
flutter_test:
1717
sdk: flutter
18+
lint: ^1.5.3
1819

1920
# For information on the generic Dart part of this file, see the
2021
# following page: https://dart.dev/tools/pub/pubspec

0 commit comments

Comments
 (0)