Skip to content

Commit

Permalink
update analysis options for nnbd (flutter#3319)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amirh authored and adsonpleal committed Feb 26, 2021
1 parent 9b266a3 commit e3308f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ analyzer:
# Ignore generated files
- '**/*.g.dart'
- 'lib/src/generated/*.dart'
errors:
always_require_non_null_named_parameters: false # not needed with nnbd
unnecessary_null_comparison: false # Turned as long as nnbd mix-mode is supported.
linter:
rules:
- public_member_api_docs

0 comments on commit e3308f2

Please sign in to comment.