Fix SonarCloud warnings
SonarCloud is reporting the following warning:
- Property 'sonar.cfamily.build-wrapper-output' is deprecated; build-wrapper now generates a compilation database. Please use the property 'sonar.cfamily.compile-commands' instead to specify the path of the 'compile_commands.json' file generated inside the build-wrapper output directory. Visit the documentation for more up-to-date information on analysis using build-wrapper https://docs.sonarsource.com/sonarcloud/advanced-setup/languages/c-family/overview/
Additionally, the GitHub Action is also reporting a deprecation alert:
-
Sonar Source Analysis. The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
If I am not mistaken this second issue should be fixed by moving the GitHub action from v2 to the latest version v3.1.0.
Edited by Pablo Oliver Cortes