Reputation: 949
There are some cases where inspections are rather annoying and even mention that the file has errors.
Using // ignore: argument_type_not_assignable
does supress the error message. Although I use this quite often, so it is annoying to have this comment spread accross the code base.
In the Settings > Inspections
couldn't find anything neither under Dart
nor General
.
Is there a way to supress specific inspections?
Upvotes: 2
Views: 124
Reputation: 657108
You can configure that using the analysis_options.yaml
file
https://www.dartlang.org/guides/language/analysis-options
analyzer:
errors:
argument_type_not_assignable: ignore
See also Suppress hint about use of protected member
Upvotes: 3