I am trying to exclude all generated files from a package using the following analysis_options.yaml
file.
include: package:pedantic/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
exclude:
- lib/**.g.dart
I still get errors for a file called lib/store/state/presentations_state.g.dart
breaking the rule implicit_dynamic_parameter
. If I exlcude **.g.dart
without the lib/
prefix, dartanalyzer
works properly, but the dart-code.dart-code
VS Code plugin reports Undefined alias. dart(parse_error)
somewhere in the first line of the YAML file, leaving the whole project marked as having an error.
I could reproduce this in both monorepos having multiple packages and single packages as well.