在ST3上rubocop
有一个棘手的问题。
group :development do
gem 'rubocop', require: false
end
如果我从控制台运行命令,它会自动更正:
ir@irostovsky ~/Projects/guestready (develop*) $ rubocop app/models/user.rb -a
Inspecting 1 file
C
Offenses:
app/models/user.rb:7:5: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
has_paper_trail
^^^^^^^^^^^^^^^
1 file inspected, 1 offense detected, 1 offense corrected
但是当我尝试从ST3命令运行rubocop_auto_correct
时,默默无闻。
我错过了什么?