Reply to post:

IntelliJ IDEA plugin catches lazy copy-pasted Java source

bombastic bob Silver badge
Meh

sometimes copypasta makes sense when you're developing, but not in production. It might be nicer to simply have the tool add appropriate code comments when it finds things, like

"// TODO: refactor, duplicate code file1.java:342 file2.jave:189"

or something similar.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon