New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Violations for files in project root folder cannot be fed #102
Comments
Maybe #155 solves the problem? |
Also wondering what is the expected behavior/definition for sonar.sources?
Manual: sonar.sources |
I'm hitting the issue of not having './' at the beginning of the paths. Was working prior to sonar 4.2. |
For me that means sensors are searching in all folders defined in sonar.sources? There are still some questions
|
2014-04-18 10:28 GMT+02:00 Günter Wirth notifications@github.com:
sonar.sources is obligatory, you have to define it.
Thats the central question here: what is the search path for stuff coming
Looking at all that, I get the feeling we should define that the reports
|
Parking relative to modules (aka subdirectories) would complicate running This would be much easier if sonar would just recognize I say check for a "./" at the beginning, and if it's not there add it.
|
Im fine with the "relative to projects basedir or absolute and nothing more" policy. But I did not test if things, especially multi-module setups, do run smoothly against recent versions of Sonar. Did you?
Im not that often on sonar dev lists anymore... Did Sonars devs make a statement on this behaviour change? |
Having things organized into sub directories causes sonar to see them as Yes. I pointed it out as a regression in relative path handling. They
|
Since 4.2?? |
Yes
|
I_m also thinking that _"filename"* and "./filename" should be the same. |
Fixed with 10bd87a. Tested via smoketest. |
I know the pathing issue also affects rats and vera results. Possibly a couple others as well but I won't be back into the office till Monday to verify. |
A file name entry in a XML report using a simple file name without any path information (e.g. file exists in project root folder) will not be handled correctly.
The reported issues from CppCheck and Vera++ will not be considered for these files.
Root cause: org.sonar.api.resources.File.fromIOFile returns null
Hint: RATS XML reports will work because a "./" prefix is used for these kind of file names.
The text was updated successfully, but these errors were encountered: