エラー内容
Error: Warning: unrecognized cop RSpec/MessageExpectation found in /path/to/.rubocop_todo.yml /path/to/kernel_require.rb:55:in `require': cannot load such file -- rubocop-rspec (LoadError)
rubocop-rspecが読み込まれてないとな。
ちなみにコンソールだとちゃんと実行できている。
$ bundle exec rubocop
:
:
61 files inspected, 10 offenses detected
エラー時の状態
各パッケージのバージョン
$ apm list | grep linter
├── linter@1.11.18
├── linter-rubocop@0.5.0
config.csonの設定内容
"linter-rubocop":
disableWhenNoConfigFile: true
excutablePath: "bundle exec which rubocop"
原因
$ rubocop
で実行されていた。
試しにコンソールで実行すると、同じエラーが💡
$ rubocop
Warning: unrecognized cop RSpec/MessageExpectation found in /path/to/.rubocop_todo.yml
/path/to/kernel_require.rb:55:in `require': cannot load such file -- rubocop-rspec (LoadError)
実行コマンドをbundle exec rubocop
に設定して無事解決。