If you haven’t tried the autofix options for jscs
and rubocop
, you’re seriously missing out!
- Be SURE you have a clean git status, as you’ll want to review what the autofix does to your code!
- Rubocop: Be sure to be in the right directory where you have Ruby files, probably the top level of your Rails project.
rubocop -a
- JSCS:: Be sure to be in the right directory where you have JS files.
jscs -x .
Autofixing is a HUGE timesaver!