jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
606 stars 178 forks source link

Using i18n creates a linter problem with constant_identifier_names in locales.g.dart #152

Open jmguillens opened 2 years ago

jmguillens commented 2 years ago

We have just implemented linter rules and the file locales.g.dart is full of Prefer using lowerCamelCase for constant names, pointing to https://dart-lang.github.io/linter/lints/constant_identifier_names.html.

This is due to the fact that the get generate locales command ads a _ (underscore) between different levels of texts in the JSON file containing the assets.

Right now there is just one solution and is to ignore the error in the file, but it is worth considering an alternative naming structure

sohaha commented 1 year ago

routes also, should they be uniformly adjusted to lowerCamelCase