2

我已经全局安装了 rubocop 并检查了版本以及 linter-rubocop,但是当我在编辑器中打开 ruby​​ 文件时,控制台中会出现此错误:

Error running RuboCop Error: -s/--stdin requires exactly one path.

我尝试手动运行rubocop -s <path to file>,但错误仍在继续。

有什么建议吗?

4

0 回答 0