# Please check that inclusion/exclusion patterns

(Dhavalchavda) #1

While scanning my project in sonar with eclipse, it gives me below error. I have tried inclusion/exclusion but it’s not working for me. I am new in sonar side and not having much idea.

D:\Git Repository\test-cases\deployment\build.xml:634: File mycase/coreclasses/BaseScriptPage.java can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

Thanks in advance.

(Julien Henry) #2

Hello,

The error seems to come from your Ant build, so my guess is that you are mixing two different products:

• SonarLint that run from your Eclipse IDE and show results in the IDE
• SonarScanner for Ant that run as a command line tool, and will push results to the SonarQube server