15
7

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 1 year has passed since last update.

Ruby — rubocop のネームスペース変更に対応する

Last updated at Posted at 2017-10-20

概要

rubocopのバージョンアップによりネームスペースが変わる場合があるので、.rubocop.yml を書き換える。

警告の例

$ rubocop
.rubocop.yml: Style/ExtraSpacing has the wrong namespace - should be Layout

.rubocop.yml

警告に should be Layout と書かれていたとおり、ネームスペースを Layout に変更する。

rubocop.yml
- Style/ExtraSpacing:
+ Layout/ExtraSpacing:
  Enabled: false

環境

  • rubocop 0.49.1
  • ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

15
7
2

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
15
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?