Limit duplicated code inspection to production src

In IDEA 15 how can I limit the duplicated code inspection to only alert me to duplicates in production src. By which I mean src/main/... in Maven terms?

I've tried setting only Production scope in the inspection (unselecting everything else choice). But this has the opposite effect to what I want. Now the test code duplicate isn't highlighted but the production code is still showing the duplicate in the test/ src. How can I switch this round to prioritize only production duplicate code issues, or only duplicates between classes within the same scope?

As test src isn't distibruted code the duplicates IDEA is highlighting between compile and test scopes aren't particulary helpful.

1 comment
Comment actions Permalink

It isn't possible at the moment, please file
YouTrack ticket


0

Please sign in to leave a comment.