Giter Site home page Giter Site logo

Comments (4)

h3xstream avatar h3xstream commented on June 3, 2024
Iterable<InputFile> files = fs.inputFiles(fs.predicates().hasRelativePath(sourceDir+"/"+fileName));

The predefined list or source directories are relative path to the module directory. You should not get issues if your project is multi-modules.

I will check if the wildcard can be used in this context. This would avoid having to hard-coded source directories.

from sonar-findbugs.

vara-prasad avatar vara-prasad commented on June 3, 2024

@h3xstream in our project configuration the source directory starts from project/. as we give sonar.sources as "." and sonar base directory as "project" and hence may need to use "matchesPathPattern"

from sonar-findbugs.

 avatar commented on June 3, 2024

I ran into the same issue. Our project is not multi-module but sources are in "/src/java", not "/src/main/java". It works if we make a symlink for that path, but that breaks the SCM functionality since the paths no longer match.

Could you add "/src/java" to the array or use the sonar.sources value from the properties file?

from sonar-findbugs.

h3xstream avatar h3xstream commented on June 3, 2024

This should have been fixed already by #68

from sonar-findbugs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.