whiteleaf7 / narou

Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理アプリ。Kindle(などの電子書籍端末)でなろうを読む場合に超便利です!
Other
496 stars 55 forks source link

rubocop --safe-auto-correct 試行結果 #360

Closed topstone closed 4 years ago

topstone commented 4 years ago

RuboCop 0.80.1 で auto correct が一部修正されたことを受けて、rubocop --safe-auto-correct ./lib/**/*.rb を実行してみました。

最初に

The following cops were added to RuboCop, but are not configured. Please set Enabled to either true or false in your .rubocop.yml file:

  • Style/HashEachMethods (0.80)
  • Style/HashTransformKeys (0.80)
  • Style/HashTransformValues (0.80)

と表示され、最終的には

97 files inspected, 1331 offenses detected, 965 offenses corrected

でした。変換後の files に対して rake spec を実行したところ、

Failure/Error: expect(@result1).to be true

だけが引っ掛かり、残りの spec は全部通りました。

一応、変換結果は topstone/narou の develop に置いておきますが、お手元で rubocop --safe-auto-correct ./lib/**/*.rb を試していただく方がよいかと思うので、pull request は出さないでおきます。

topstone commented 4 years ago

現時点では safe-auto-correct が安定していないようなので、一旦閉じます。