solidusio / rubocop-solidus

Automatic Solidus code style checking tool.
MIT License
4 stars 4 forks source link

Create module to specify Solidus version for a cop #39

Closed MassimilianoLattanzio closed 1 year ago

MassimilianoLattanzio commented 1 year ago

Some cops are only applicable to some versions of Solidus.

This PR introduces a new module to use for all cops that need this feature.

The minimum Solidus version can be specified in the cop itself in this way:

include TargetSolidusVersion
minimum_solidus_version 2.11