Ha. TIL you can do 1_000_000.times do ... (equivalent to 1000000.times do ...). That's really nice.
rubocop --show-cops
I can see that the NumericLiterals cop that's bothering you supports autocorrect so running: rubocop -A <filename>
should fix the problem for you.As a latecomer, C23 went with ' just like C++ did almost 10 years earlier with C++14.