3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rubocopで修正ファイルだけを確認するコマンド

Last updated at Posted at 2015-10-08

自分用のメモ

bbatsov/rubocop というコーディング規約確認ツールがあって、自分が編集したファイルだけを確認したい時には以下のコマンドで確認する

git status -s | awk '{print $2}' | egrep "*.rb" | xargs bundle exec rubocop -D -c .rubocop.yml

  • 毎回全ファイルチェックだと重すぎたのでこうなった
  • 最初はprecommitに入れようと思ったけど、めんどくさくなったので手動で気になったら叩いてる
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?