-
Notifications
You must be signed in to change notification settings - Fork 363
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
side by side usage of C++ commercial and community plugin #1400
Comments
Commercial plugin settings to keep in mind making the plugins working side-by-side. C / C++C file suffixesComma-separated list of suffixes of C files to analyze. C++ file suffixesComma-separated list of suffixes of C++ files to analyze. Objective-C file suffixesComma-separated list of suffixes of Objective-C files to analyze. CoverageBullseye XML reportPath to the Bullseye XML Coverage Report. The path may be either absolute or relative to the project base directory. Gcov reportsPath to the directory containing the *.gcov Gcov report files. The path may be either absolute or relative to the project base directory. llvm-cov reportPath to the Coverage Report generated by "llvm-cov show". The path may be either absolute or relative to the project base directory. Visual Studio XML reportsPattern for search for Visual Studio Coverage XML reports. The pattern may be either absolute or relative to the project base directory. For example: "**/.coveragexml" will find all ".coveragexml" files in all sub-directories of current project. TestsCppUnit reportsPath to the directory containing the *.xml CppUnit report files. The path may be either absolute or relative to the project base directory. MiscellaneousIgnore header commentsIf set to "true", the file headers (that are usually the same on each file: licensing information for example) are not considered as comments. Thus metrics such as "Comment lines" do not get incremented. If set to "false", those file headers are considered as comments and metrics such as "Comment lines" get incremented. DeprecatedC language standardThis property is deprecated, because the build-wrapper gathers this information automatically. C++ language standardThis property is deprecated, because the build-wrapper gathers this information automatically. Comma-separated list of lines that are passed into the preprocessorThis property is deprecated, because the build-wrapper gathers this information automatically. |
This is confusing maybe we should change it to |
This is confusing maybe we should change it to |
C / C++ / Objective-C
C++ (Community)
|
For my understanding dependencies are like this:
|
Is there anymore work that needs doing for this issue? |
@andrewjlawrence for the cpp and cxx it should work. They have unique names now. Work means:
To turn on/off a plug-in you have to set always one of the two suffixe settings to an invalid value, e.g. .xyz:
This is a workaround - don't know how we solve this in future. |
Isn't this a duplicate to #1345? |
We are also having this issue as we would like to mix sensors from both plugins. We contacted Sonar for this issue some time ago (mid 2016) and got this answer:
I don't know if this is of any help for you but this may be a track to follow. |
@Kristouff the use case cpp and cxx plugin installation on one server is supported. You can also use the one or the other plugin (it's an xor). Mixed mode (reading files with cpp plugin and using cxx sensors) is not supported yet. Also don't know if this is possible? Would mean some thing like register sensors for both language keys (cxx and cpp)? |
The ideal solution would be to mix advantages of both cpp and cxx plugins by appending cxx sensors results to cpp plugin analysis. In details, we are looking for implementation of the following analysis sequence :
Maybe this is not possible, but it could also be interesting to have cxx plugin analysis results to extend cpp plugin ruleset. |
@Kristouff thanks for your feedback. Think there are several things to take into account. I'm also not sure if there is another sample where two plugins are supporting one language.
|
@guwirth It's been a long time since my last post but the need is still present. This work must be seen as a proof of concept, I think. |
@Kristouff your comment is older but some feedback to it. SonarQube is always working in two steps:
So instead of copying the code the easier way is to index the files with the commercial plugin (set there the file extensions) and disable it in the community plugin (set a dummy file extension, e.g. |
cxx plugin v2.0:
|
As an user I like to use the C++ commercial and community plugin in parallel on the same server.
The text was updated successfully, but these errors were encountered: