refactor: update build and sonar configuration - #8
Merged
Merged
Conversation
Update sonar-scanner setup to build from source instead of downloading prebuilt binaries. This requires installing additional dependencies including maven and cmake. Reorganize workflow steps to install dependencies before sonar-scanner setup. Update build wrapper output directory path to match project structure. Improve C++ code quality by replacing C-style cast with modern static_cast in ssllabs.cpp.
|
There was a problem hiding this comment.
Code Review
This pull request updates the SonarQube build wrapper output path and refactors a pointer cast in the SSL Labs source code to use a modern C++ static cast. Feedback highlights a potential buffer over-read in the CURL write callback, suggesting the use of the buffer size during string appending, and recommends transitioning to a compilation database for more robust SonarQube analysis.
| size_t realsize = size * nmemb; | ||
|
|
||
| std::string *mem = (std::string *) up; | ||
| auto *mem = static_cast<std::string *>(up); |
|
|
||
| # Use this if you have a specific build tool (optional) | ||
| sonar.cfamily.build-wrapper-output=build_wrapper_output_directory | ||
| sonar.cfamily.build-wrapper-output=build/wrapper_output_directory |
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Update sonar-scanner setup to build from source instead of
downloading prebuilt binaries. This requires installing additional
dependencies including maven and cmake.
Reorganize workflow steps to install dependencies before sonar-scanner
setup. Update build wrapper output directory path to match project
structure.
Improve C++ code quality by replacing C-style cast with modern
static_cast in ssllabs.cpp.