Rubocop——仅在命令行上指定多个警察?

Rubocop --only with multiple cops named on the command line?

如何从命令行 运行 rubocop,只针对几个警察?

我可以 运行 为一个警察成功:

rubocop --only Layout/HeredocIndentation 

这行得通,但我想 运行 多个警察一次完成。我尝试了三种不同的变体,但没有成功:

rubocop --only Rails/Blank --only Layout/HeredocIndentation --only Naming/FileName 
rubocop --only Rails/Blank Layout/HeredocIndentation Naming/FileName 
rubocop --only Rails/Blank, Layout/HeredocIndentation, Naming/FileName 

https://docs.rubocop.org/rubocop/usage/basic_usage.html 说:

--only  |  Run only the specified cop(s) and/or cops in the specified departments.

...但没有给出语法示例。

我怎样才能 运行 rubocop 只对付几个警察,所有这些都在命令行上给出?

为了 运行 rubocop 对抗在命令行上命名的几个警察,用逗号分隔警察,但没有空格:

rubocop --only Rails/Blank,Layout/HeredocIndentation,Naming/FileName