spkersten / dart_functional_data

Simple and non-intrusive code generator for lenses and boilerplate of data types
https://pub.dev/packages/functional_data
MIT License
41 stars 15 forks source link

Name non-constant identifiers using lowerCamelCase. #7

Closed jaggerwang closed 4 years ago

jaggerwang commented 5 years ago

There is a naming warning for the generated code in VSCode. It's not affect function, but annoying. image

modulovalue commented 5 years ago

These rules are also being violated: // ignore_for_file: annotate_overrides, join_return_with_assignment, type_annotate_public_apis

a solution would be to add an ignore_for_file line to generated files.

spkersten commented 5 years ago

We exclude *.g.dart files from analysis, which could be a quick mitigation. When I've time, I'll generate better names and add the warning suppressions.

spkersten commented 4 years ago

The code is now generated with ignore_for_file for these warnings.