0
2

More than 1 year has passed since last update.

【Ruby+rubocop】RuboCopでコーディングチェックする。

Posted at

自分用のメモとして残します。

やり方

前提として、rubocopをインストールしていること。

チェックのみ:ファイル単体

bundle exec rubocop ファイルパス

チェック&自動整形:ファイル単体、-a オプション

-a オプションで自動整形できるものはしてくれる。
--auto-correct の略

bundle exec rubocop ファイルパス -a

以上です。

0
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
0
2