Skip to content

Commit df1b055

Browse files
amirhamantoux
authored andcommitted
update analysis options for nnbd (flutter#3319)
With NNBD assert(foo != null) for a non nullable foo generates an analysis error. However as long as we support mixed-mode we want these asserts it, so disabling the check.
1 parent 0edb449 commit df1b055

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

analysis_options.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ analyzer:
44
# Ignore generated files
55
- '**/*.g.dart'
66
- 'lib/src/generated/*.dart'
7+
errors:
8+
always_require_non_null_named_parameters: false # not needed with nnbd
9+
unnecessary_null_comparison: false # Turned as long as nnbd mix-mode is supported.
710
linter:
811
rules:
912
- public_member_api_docs

0 commit comments

Comments
 (0)