Search code examples
gulpwebstorm

Why is Webstorm detecting this as duplicate?


I can't seem to understand why WebStorm is detecting these lines as duplicate code, I've looked over everything but I can't seem to find what its referring to...

Also, is there a way in which we can make lines like this shorter? Its bothers me that export.name of thing is repeating so much, I think it might be bad practice.

Does anybody have any clues to such issues?

I've attached images of the code sections which cause the problems.enter image description hereenter image description here

Please let me know if there is any additional information I could provide to help find a solution.

Thank you!


Solution

  • Must be WEB-40442. Please try disabling Settings | Editor | Duplicates > JavaScript > Variable or identifier names - does it help?