jonataslaw / jonataslaw/get_cli

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

Open
#152 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
654
Forks
193
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.