Sulman Baig

March 9, 2022

Rubocop Good or bad

I have been working on Rubocop recently quite heavily. Sometimes rubocop is a great utility and sometimes it is pain in a**. With Error Lens extension rubocop warnings come in bold. Recently, I had a method with lines greater than 12 but the warning was quite sticky. At that moment you want to minimize the length and at the same time, you see you can't minimize unless you break DRY. There should be a valid method to ignore the warning rather than the comment.