Skip to content

Commit c9f45d3

Browse files
committed
➕ Added very_good_analysis
1 parent bd02c05 commit c9f45d3

File tree

2 files changed

+15
-31
lines changed

2 files changed

+15
-31
lines changed

analysis_options.yaml

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
1-
# This file configures the static analysis results for your project (errors,
2-
# warnings, and lints).
3-
#
4-
# This enables the 'recommended' set of lints from `package:lints`.
5-
# This set helps identify many issues that may lead to problems when running
6-
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
7-
# style and format.
8-
#
9-
# If you want a smaller set of lints you can change this to specify
10-
# 'package:lints/core.yaml'. These are just the most critical lints
11-
# (the recommended set includes the core lints).
12-
# The core lints are also what is used by pub.dev for scoring packages.
13-
14-
include: package:lints/recommended.yaml
15-
16-
# Uncomment the following section to specify additional rules.
17-
18-
# linter:
19-
# rules:
20-
# - camel_case_types
21-
22-
# analyzer:
23-
# exclude:
24-
# - path/to/excluded/files/**
25-
26-
# For more information about the core and recommended set of lints, see
27-
# https://dart.dev/go/core-lints
28-
29-
# For additional information about configuring this file, see
30-
# https://dart.dev/guides/language/analysis-options
1+
include: package:very_good_analysis/analysis_options.yaml
2+
3+
analyzer:
4+
errors:
5+
unawaited_futures: warning
6+
avoid_void_async: warning
7+
missing_return: error
8+
missing_required_param: error
9+
invalid_annotation_target: info
10+
11+
language:
12+
strict-casts: true
13+
strict-inference: true
14+
strict-raw-types: true

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ dependencies:
1212

1313
dev_dependencies:
1414
http: ^1.2.1
15-
lints: ">=2.1.1 <4.0.0"
15+
very_good_analysis: ^5.1.0
1616
mocktail: ^1.0.3
1717
test: ^1.25.2

0 commit comments

Comments
 (0)