rubocop-rspec
rubocop-rspec copied to clipboard
Reduce false positives of ExampleLength when using #expect_offense et. al.
We currently have over 3,000 violations over in the core repo. Mostly because this cop doesn't care about our internal DSLs. 🙂
One approach to fixing this could be counting heredocs as a single line. WDYT?
Related to #249
Mostly because this cop doesn't care about our internal DSLs. 🙂
“Our” as in “RuboCop’s’? If that’s the case, perhaps the cop should just be disabled on RuboCop?
Disclaimer: I prefer disabling all *-length cops on the projects I’m working on. Adding 1 line to a method/class/block and then getting a violation error feels counter-productive.</rant>