I have an analysis_options.yaml using include:
include: package:dart_flutter_team_lints/analysis_options.yaml
And it looks correct because if I "dart analyze" I get findings:
info • lib/generate_dart_model.dart:141:15 • Method invocation or property access on a 'dynamic' target. Try giving the target a type. • avoid_dynamic_calls
But I don't see any such info in VSCode. If I copy the config in place:
analyzer:
language:
strict-casts: true
strict-inference: true
linter:
rules:
avoid_dynamic_calls
then I immediately see the finding in VSCode.
Any ideas please? I ran into this on the language repo and ended up giving up and just copying the whole config in
https://github.com/dart-lang/language/blob/main/working/macros/dart_model/analysis_options.yaml
and now I run into it again in the macros repo
https://github.com/dart-lang/macros/tree/main/pkgs/dart_model
with my pending PR that has some lint issues :)
@jakemac53 @devoncarew @DanTup any ideas please? :)
I have an
analysis_options.yamlusinginclude:And it looks correct because if I "dart analyze" I get findings:
But I don't see any such info in VSCode. If I copy the config in place:
then I immediately see the finding in VSCode.
Any ideas please? I ran into this on the language repo and ended up giving up and just copying the whole config in
https://github.com/dart-lang/language/blob/main/working/macros/dart_model/analysis_options.yaml
and now I run into it again in the macros repo
https://github.com/dart-lang/macros/tree/main/pkgs/dart_model
with my pending PR that has some lint issues :)
@jakemac53 @devoncarew @DanTup any ideas please? :)