You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
M123-dev
changed the title
Code Quality: Multiple OpenFoodFactsLanguage enums in g files
Code Quality: Multiple OpenFoodFactsLanguage enum occurrences in g files
Jan 24, 2025
Hi @M123-dev!
By definition we have limited control over generated files. We're even talking about private fields, so no off-dart user is likely to misuse them.
That said, if there's an easy and maintainable solution to generate less duplicate code, why not.
While having a look at openfoodfacts/smooth-app#6215 that multiple g files include the OpenFoodFactsLanguage enum.
It's far from a high priority, but it's wasted storage and bandwidth to have it so many times.
But we have to check if there is even a way to configure it not be included in all files.
https://github.com/search?q=repo%3Aopenfoodfacts%2Fopenfoodfacts-dart%20OpenFoodFactsLanguage.FINNISH&type=code
The text was updated successfully, but these errors were encountered: