Duplicate code warnings for concatenated Javascript file

Hello everyone,

 

I'm using Gulp to concatenate all my Javascript files into 1 app.js file, which is inside the project folder. This causes IntelliJ to give duplicate code warnings all over the place.

 

I'd rather not disable the duplicate code warning all together, but rather just for this file. Is this possible? Or maybe another solution?

 

Thanks.

0
1 comment

You can create a scope with this file excluded in Settings | Appearance & Behavior | Scopes and then set this scope for General | Duplicated code fragment inspection. See https://www.jetbrains.com/help/webstorm/2019.2/inspections-settings.html#5

0

Please sign in to leave a comment.