standard icon indicating copy to clipboard operation
standard copied to clipboard

Cops from RuboCop plugins not being enabled?

Open andyw8 opened this issue 8 months ago • 3 comments

Now that RuboCop uses lint_roller, is it expected that Standard should work with any RuboCop plugin that has been updated to use lint_roller?

I'm trying to use Standard with rubocop-minitest which was updated in https://github.com/rubocop/rubocop-minitest/pull/329

Here is a demo repo: https://github.com/andyw8/demo-standard-rubocop-minitest

It has both RuboCop and Standard installed. There are identical config files .standard.yml and .rubocop.yml, which enable a cop from rubocop-minitest.

Running bundle exec rubocop test/example_test.rb emits an error for Minitest/LiteralAsActualArgument, as expected.

But running bundle exec standardrb test/example_test.rb doesn't emit anything.

andyw8 avatar Apr 14 '25 23:04 andyw8

I realised the RuboCop config should be in a file specified under extend_config:. I've updated the demo (still failing).

andyw8 avatar Apr 15 '25 13:04 andyw8

This is a duplicate of #701.

meineerde avatar May 06 '25 17:05 meineerde

Just noting on each of these issues that I think they're related/possibly duplicative, so that hopefully whenever someone picks up any of them, it's clear how they're tied together:

#715 is potentially duplicative of #701, which mentions possibly being the same issue as #540

VikiAnn avatar Jun 12 '25 18:06 VikiAnn