juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
38 stars 6 forks source link

Linter warnings for queries without arguments #19

Open tigloo opened 6 months ago

tigloo commented 6 months ago

Auto-generated code may contain linter warnings. Specifically, when writing a query without any arguments, there will be an "unused local variables" linter warning.

Ideally the auto-generated code includes // ignore_for_file: unused_local_variable or it will detect the scenario and change the generated code.

juancastillo0 commented 6 months ago

Thanks for the issue!

Yes that would be great. At the moment one could exclude the generated files from the analyzer.