Simplify cop rule Scalability/FileUploads
What does this MR do and why?
This MR simplifies Scalability/FileUploads
by unifying 3 node patterns (2 static and one dynamic) into a single one which uses {} union
and $ captures
.
Found during investigation of !111008 (merged).
How to set up and validate locally
$ bundle exec rubocop --only Scalability/FileUploads lib/api
Inspecting 541 files
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
541 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