Fix deprecated usagepatterns of rubocop
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do and why?
Use current style of writing cops.
This also silences deprecation warnings in RuboCop 1.67.0. See !164582 (comment 2163441623)
Edited by Peter Leitzen