News for hackers. Stuff that matters.
Re:Embed Crystal code directly in Ruby by bdcravens on Thursday April 11, 2024 @01:31PM (#40004665)
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)
Re:Embed Crystal code directly in Ruby by Lio on Thursday April 11, 2024 @02:35PM (#40005322)
Listing 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.