Skip to content
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

SonarCFamily support #2018

Merged
merged 1 commit into from
Dec 31, 2020
Merged

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Dec 31, 2020

  • sensors for external reports are supporting languages with keys: cxx, cpp and c
  • For reading in (indexing) the files, you have to decide whether you want to use the cxx plugin or the SonarCFamily. With SonarQube, file types can only be uniquely assigned to one programming language via the file extension. Several plugins cannot define the same programming language (language key). Therefore the cxx plugin uses cxx as language key and SonarCFamily uses cpp for C++ and c for C. The file extension must be deactivated in the respective other plugin: Each file extension may be defined only once in the sonar.cxx.suffixes.sources, sonar.cpp.file.suffixes or sonar.c.file.suffixes settings.
  • The rules are configured consistently in the Quality Profiles under CXX.
  • close Feedback needed: Solve c plugin, c++ plugin, CFamily plugin issues #1784

This change is Reviewable

- sensors for external reports are supporting languages with keys: "cxx", "cpp" and "c"
- For reading in (indexing) the files, you have to decide whether you want to use the 'cxx plugin' or the 'SonarCFamily'. With SonarQube, file types can only be uniquely assigned to one programming language via the file extension. Several plugins cannot define the same programming language (language key). Therefore the 'cxx plugin' uses 'cxx' as language key and 'SonarCFamily' uses 'cpp' for C++ and 'c' for C. The file extension must be deactivated in the respective other plugin: Each file extension may be defined only once in the 'sonar.cxx.suffixes.sources', 'sonar.cpp.file.suffixes' or 'sonar.c.file.suffixes settings'.
- The rules are configured consistently in the Quality Profiles under 'CXX'.
@guwirth guwirth added this to the 2.0.0 milestone Dec 31, 2020
@guwirth guwirth self-assigned this Dec 31, 2020
@guwirth guwirth merged commit 2d2206c into SonarOpenCommunity:master Dec 31, 2020
@guwirth guwirth deleted the SonarCFamily-support branch January 31, 2021 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Feedback needed: Solve c plugin, c++ plugin, CFamily plugin issues
1 participant