RuboCop Gitlab/AvoidFeatureGet: Add specs and improve implementation
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen