Reply to post:

IntelliJ IDEA plugin catches lazy copy-pasted Java source

Filippo Silver badge

I'm a bit confused. From reading the article, it appears that the tool is attempting to deal with several issues.

Copying code from StackOverflow without checking whether it works properly is a problem.

Copying code from StackOverflow without checking the license is another problem entirely.

Copying code from other bits of your project without bothering to abstract it into a function is yet another problem entirely.

These issues actually have very little in common. Different reasons why you do it, different reasons why it may actually be valid in your case, different solutions when it isn't. I'm skeptical that the same tool can apply to all of those.

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