Skip to content

RuboCop Gitlab/AvoidFeatureGet: Add specs and improve implementation

Peter Leitzen requested to merge pl-rubocop-spec-avoid-feature-get into master

What does this MR do and why?

This MR adds missing specs to Gitlab/AvoidFeatureGet and improves the implementation a bit.

Contributes to #355012 and refs !96880 (merged).

Screenshots or screen recordings

No changes in offenses message.

How to set up and validate locally

bin/rspec spec/rubocop/cop/gitlab/avoid_feature_get_spec.rb

bundle exec rubocop --only Gitlab/AvoidFeatureGet --parallel --format simple
27879 files inspected, no offenses detected

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports