rubycritic icon indicating copy to clipboard operation
rubycritic copied to clipboard

Highlight entire indentical block on DuplicateCode smell

Open jbodah opened this issue 10 years ago • 2 comments

Right now there's just a banner under the first line where a DuplicateCode smell is detected. In this particular example the UI makes it seem as though only the method signature is duplicated. Highlighting the entire block would help make it more clear what is duplicated

rubycritic

jbodah avatar Jul 23 '15 03:07 jbodah

That is something that has bothered from the start of this project. It's on the roadmap™.

Unfortunately, the gem we currently use to detect duplicate code, Flay, does not support that use case.

guilhermesimoes avatar Nov 10 '15 20:11 guilhermesimoes

Hi guys, I am facing this problem for two weeks. I don't know how to disable Flay because it is bothering me about DuplicateCode that I don't want to consider. I mean, I will ignore these files. Does anyone have a solution for this case?

lflucasferreira avatar Oct 16 '19 19:10 lflucasferreira