Please check that inclusion/exclusion patterns

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

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

Can you be more specific as I run the build from Eclipse and not command line

You are running an Ant task from Eclipse, but not using SonarLint, right?