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
We use Rubocop to standardise our code, which can improve code quality and reduce confusion. When evaluating each rule, consider if it helps with those goals or not. Often the suggested autocorrection is fine, but some cops require more consideration and there may be a better solution, or it might be appropriate to disable them, rather than create unnecessary extra work.
If unsure, please ping @openfoodfoundation/developers in a github comment to request an opinion.
We use Rubocop to standardise our code, which can improve code quality and reduce confusion. When evaluating each rule, consider if it helps with those goals or not. Often the suggested autocorrection is fine, but some cops require more consideration and there may be a better solution, or it might be appropriate to disable them, rather than create unnecessary extra work.
If unsure, please ping
@openfoodfoundation/developers
in a github comment to request an opinion.Strategy to fix issues
The normal process to fix a style issue is:
.rubocop_todo.yml
and run rubocop to see the error(s). Also check out this script.rubocop:disable
comment in some cases (disable only offending line where possible)When a cop or group of cops is complete, open a pull request.
Issues
Generated 4 Mar 2025:
The text was updated successfully, but these errors were encountered: