Skip to content
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

Add compilation database options from CPG as CLI option #902

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fwendland
Copy link
Collaborator

CPG supports compilation databases to identify project related files. We pull the configuration option through and add support for it from Codyze.

@fwendland fwendland added the enhancement New feature or request label Sep 13, 2024
@fwendland fwendland self-assigned this Sep 13, 2024
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 58.82353% with 7 lines in your changes missing coverage. Please review.

Project coverage is 77.39%. Comparing base (692c516) to head (3b0f65d).

Files with missing lines Patch % Lines
...fraunhofer/aisec/codyze/backends/cpg/CPGBackend.kt 0.00% 2 Missing and 1 partial ⚠️
...c/codyze/backends/cpg/cli/BaseCpgBackendCommand.kt 0.00% 2 Missing ⚠️
...c/codyze/backends/cpg/cli/CokoCpgBackendCommand.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #902      +/-   ##
============================================
- Coverage     77.54%   77.39%   -0.16%     
- Complexity      270      271       +1     
============================================
  Files            61       61              
  Lines          2031     2048      +17     
  Branches        299      300       +1     
============================================
+ Hits           1575     1585      +10     
- Misses          323      329       +6     
- Partials        133      134       +1     
Flag Coverage Δ
unittests 77.39% <58.82%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


val filterCompilationDatabase: List<String> by option(
"--filterCompilationDatabase",
help = "Filters compilation database for specific components",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe extend the comment that if the filter is empty, all components are used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants