-
Notifications
You must be signed in to change notification settings - Fork 362
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
Clang-Tidy: skipped warnings #2175
Comments
Seem like they're all pointing to a column after last one - could that be the reason they cannot be added? |
Other issues from clang-tidy are off by one column for me too - is one indexing from 0 and the other form 1? |
@yachoor thanks for the hint. That was also my first idea. Question is how Clang-Tidy is counting the columns: 0-n or 1-n? |
It's 1-n:
for test.cpp:
|
@yachoor thx. Problem is here: sonar-cxx/cxx-sensors/src/main/java/org/sonar/cxx/sensors/utils/CxxIssuesReportSensor.java Line 135 in a736837
1.3 version of plugin did support only lines. Because we have only one column number we have to decide if we like to mark (red underline) from position to position +1 or -1.
|
@guwirth
|
- column number offset corrected: Clang-Tidy:1...n; SQ: 0...n (SonarOpenCommunity#2175) - improved error message - in case of invalid column number: report issue for whole line - add test with duplicate issues
@yachoor, @dsakilesh please try with latest snapshot. Most Clang-Tidy issues should be solved now: |
Thank you @guwirth, works perfect - no ignored issues and indicates correct column where possible |
@yachoor thx for your feedback. Will wait what @dsakilesh is saying and if also positive do an official release. |
We have one small issue still.
The above lines of warning is counted as 6 warnings in Jenkins warning NG plugin.
But in sonarQube its considered as only 2 warnings
PFB the skipped warnings from sonarqube debug logs:
Why are the warnings skipped in Sonarqube?
The text was updated successfully, but these errors were encountered: