Languages of the repository - Typescript/Javascript
Potential workaround - choose the right option for turning on incremental analysis
We use Sonar Cloud and have some limitations. We already increased limits, but it still doesn’t help.
I have a medium-sized typescript project. It seems that every time it analyzes the project, it analyzes the whole project and doesn’t count the incremental options I have enabled.
I didn’t find relevant documentation about incremental analysis. I use Sonarqube github action with this configuration
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v2.0.0
env:
** some vars here **
with:
projectBaseDir: "."
args: >
-Dsonar.organization=..
-Dsonar.projectKey=...
-Dsonar.incremental=true
Keep in mind that you can adjust the analysis scope if there are files you don’t need to be analyzed (third-party code, which should be excluded by default, for example).
Otherwise… we license by lines of code (the total amount analyzed at a given time, not using up a quota with each scan), and you’ll have to adjust your license to account for that.