Skip to content

Instantly share code, notes, and snippets.

@dyanagi
Last active September 11, 2019 06:01
Show Gist options
  • Save dyanagi/3420fe245afec85749233806d0cff6c4 to your computer and use it in GitHub Desktop.
Save dyanagi/3420fe245afec85749233806d0cff6c4 to your computer and use it in GitHub Desktop.
Tools for Ruby/Rails projects

Tools for Ruby/Rails projects

Rails Best Practices

bundle e rails_best_practices

i18n-tasks

Use this to organize translations and auto-translate missing ones

bundle e i18n-tasks normalize
bundle e i18n-tasks missing
bundle e i18n-tasks add-missing --nil-value
bundle e i18n-tasks add-missing --verbose
bundle e i18n-tasks check-consistent-interpolations
bundle e i18n-tasks health

Translate (Put the API key in GOOGLE_TRANSLATE_API_KEY environment variable)

bundle e i18n-tasks translate-missing

More

bundle e i18n-tasks eq-base
bundle e i18n-tasks unused
bundle e i18n-tasks unused > i18n-unused.txt
bundle e i18n-tasks remove-unused
bundle e i18n-tasks data > i18n-data.txt
bundle e i18n-tasks --help

Brakeman

Finds security vulnerabilities

bundle e brakeman

Rubocop

Gives advise to improve code quality

bundle e rubocop
# To fix warnings automatically, run:
bundle e rubocop --auto-correct

Reek

bundle e reek

bundler-audit

bundle e bundle-audit --update
# or without updating:
bundle e bundle-audit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment