Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 2f708d7

Browse files
authored
update analysis options for nnbd (#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 284ad5d commit 2f708d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

analysis_options.yaml

Lines changed: 3 additions & 0 deletions
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)