-
Notifications
You must be signed in to change notification settings - Fork 365
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
How many parsing errors are acceptable to get good technical debt results? #228
Comments
Just a side node: to get good technical debt results in presence of 'parsing error' violations the remediation costs of the latter should be probably set to 'zero'. Otherwise we're charging technical debt of the codebase with technical debt of projects setup and our grammar ;) |
characteristics for parsing error have not been defined, so we are cleared |
My conclusion: As long as only external tools are used and not the checks based on the AST, parsing errors doesn't matter. Also sonar.cxx.includeDirectories and sonar.cxx.forceIncludes are not needed for this case. Not setting them will reduce analysis time. |
See also discussion in #237 and comment of @wenns.
Im actually not talking about the builtin checks, but all features which And more is coming: all the cartography-stuff which from SonarSource's Parsing and building the AST doesnt end in itself, it enables many |
@guwirth seems we all agree parser errors should not produce technical debt. This need to be changed before release |
Using sonar.cxx.includeDirectories and sonar.cxx.forceIncludes in the right way results in less parsing errors.
On the other hand analyzing time is increased because of these additional includes. During performance test I found: Most important part is how many and complex includes exist. For example integration of complex boost slow down things.
In my case resulting technical debt was with and without these includes always the same. So wondering if it would not be better not to add system includes and external libraries?
What is your experience?
The text was updated successfully, but these errors were encountered: