Skip to content

Instantly share code, notes, and snippets.

@e10a
Last active September 6, 2024 20:34
Show Gist options
  • Save e10a/625ba282916fccacb0b8ac362e10205b to your computer and use it in GitHub Desktop.
Save e10a/625ba282916fccacb0b8ac362e10205b to your computer and use it in GitHub Desktop.
_rubocop
# To run a file
rubocop -f files -A app/helpers/application_helper.rb
rubocop -f files -A test/features/roxy/cart_modal_logged_out/edit_billing_info_test.rb
# To run a folder
rubocop -f files -A test/features/roxy/cart_modal_logged_out
# To run on change ruby files only
git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop
test/features/roxy/phase1/footer_test.rb
~/shine/test/features/roxy/phase1/mobile_menu_test.rb
~/shine/test/features/roxy/phase1/nav_desktop_test.rb
test/features/roxy/cart_modal_logged_out/edit_billing_info_test.rb
app/controllers/api/v1/search_histories_controller.rb
app/helpers/product_descriptors_helper.rb
rubocop -f files -A app/helpers/product_descriptors_helper.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment