4 ms·
Install the Rubocop extension in your editor and it'll bug you about it every time you have a big int (kind of annoying when you're doing one-off scripts and em
by bdcravens 3y ago
Install the Rubocop extension in your editor and it'll bug you about it every time you have a big int (kind of annoying when you're doing one-off scripts and embed "magic numbers" like IDs from the database lol)
- Lio 3y agoListing cops with: 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.