rubocop-minitest icon indicating copy to clipboard operation
rubocop-minitest copied to clipboard

Minitest/GlobalExpectations: configure extra matcher methods

Open gi opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

In one of my projects, there are other matcher methods that are not a part of the core Minitest library (perhaps an extension) but which would be nice to include in this cop.

Describe the solution you'd like

Add a configuration field which includes additional matcher methods for which to check:

AdditionalMethods:
  - must_match_array
  - wont_match_array

Describe alternatives you've considered

A custom cop is not maintainable.

Additional context

No.

gi avatar Oct 22 '21 16:10 gi

In one of my projects, there are other matcher methods that are not a part of the core Minitest library (perhaps an extension)

@gi I have a question. Are these (must_match_array and wont_match_array) open source 3rd party custom matchers? Or is it your project's own proprietary custom matchers?

koic avatar Dec 19 '21 16:12 koic

I'm going to close this issue because no response for a long time.

koic avatar Dec 30 '22 06:12 koic