solidusio / rubocop-solidus

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

Targeted Solidus Version #34

Closed DanielePalombo closed 1 year ago

DanielePalombo commented 1 year ago

Add a feature that allows cops to check and decide whether to execute themselves against a solidus version mentioned in the configuration.

rubocop.yml can hold a solidus version. e.g. - TargetSolidusVersion in the configuration.

AllCops: TargetSolidusVersion: 2.11

There should a module that holds methods that allow us to

assign a minimum solidus version to a cop

fetch the TargetSolidusVersion from the rubocop.yml file

check a cops minimum version against the targeted version and allow a cop to be skipped.

Note: Check minimum_target_rails_version method on rubocop-rails for an idea on the implementation

Issue will be closed when:

DanielePalombo commented 1 year ago

This is on review, right?

MassimilianoLattanzio commented 1 year ago

This is on review, right?

Yeah, right