Org.sonar.api.batch.fs Interface InputFileFilter accept conditions


(Hilal Emeksiz) #1

Hello
SonarQube version 7.0, sonarscanner on jenkins, changed files on a bitbucket pull request are given as input to the property sonar.inclusions.

1)Although we have a lot of java files to be scanned via sonar inclusions property only 1 file is indexed. What are the acceptance conditions for a file to be indexed. I found the method from github “org.sonar.api.batch.fs Interface InputFileFilter accept”, i was not able to get any clues since it is interface and i could not find its implementation.

  1. In our java projects some file names or file paths include patterns like
    are “-” s problem?
    “project-core/src/main/java/com/aProvider.java”
    or
    "core - project - file.xml "

job fails with :
ERROR: Unrecognized option: -
INFO: