Fraunhofer-AISEC / cpg

A library to extract Code Property Graphs from C/C++, Java, Go, Python, Ruby and every other language through LLVM-IR.
https://fraunhofer-aisec.github.io/cpg/
Apache License 2.0
288 stars 62 forks source link

First part of scope cleanup #1856

Open oxisto opened 5 days ago

oxisto commented 5 days ago
codecov[bot] commented 5 days ago

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 76.20%. Comparing base (66aa2da) to head (8c9b082). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ain/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt 66.66% 1 Missing and 3 partials :warning:
...fraunhofer/aisec/cpg/frontends/golang/GoHandler.kt 50.00% 0 Missing and 1 partial :warning:
...fer/aisec/cpg/frontends/python/StatementHandler.kt 50.00% 0 Missing and 1 partial :warning:
Additional details and impacted files | [Files with missing lines](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC) | Coverage Δ | | |---|---|---| | [...de/fraunhofer/aisec/cpg/graph/scopes/LocalScope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FLocalScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9Mb2NhbFNjb3BlLmt0) | `100.00% <100.00%> (ø)` | | | [.../de/fraunhofer/aisec/cpg/graph/scopes/NameScope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FNameScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9OYW1lU2NvcGUua3Q=) | `80.00% <100.00%> (ø)` | | | [...raunhofer/aisec/cpg/graph/scopes/NamespaceScope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FNamespaceScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9OYW1lc3BhY2VTY29wZS5rdA==) | `100.00% <100.00%> (ø)` | | | [...tlin/de/fraunhofer/aisec/cpg/graph/scopes/Scope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9TY29wZS5rdA==) | `79.10% <100.00%> (+1.32%)` | :arrow_up: | | [...isec/cpg/graph/scopes/StructureDeclarationScope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FStructureDeclarationScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9TdHJ1Y3R1cmVEZWNsYXJhdGlvblNjb3BlLmt0) | `81.25% <100.00%> (-1.11%)` | :arrow_down: | | [...er/aisec/cpg/graph/scopes/ValueDeclarationScope.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fgraph%2Fscopes%2FValueDeclarationScope.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL2dyYXBoL3Njb3Blcy9WYWx1ZURlY2xhcmF0aW9uU2NvcGUua3Q=) | `50.00% <100.00%> (ø)` | | | [...fraunhofer/aisec/cpg/frontends/golang/GoHandler.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-language-go%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Ffrontends%2Fgolang%2FGoHandler.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWxhbmd1YWdlLWdvL3NyYy9tYWluL2tvdGxpbi9kZS9mcmF1bmhvZmVyL2Fpc2VjL2NwZy9mcm9udGVuZHMvZ29sYW5nL0dvSGFuZGxlci5rdA==) | `73.52% <50.00%> (-2.23%)` | :arrow_down: | | [...fer/aisec/cpg/frontends/python/StatementHandler.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-language-python%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Ffrontends%2Fpython%2FStatementHandler.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWxhbmd1YWdlLXB5dGhvbi9zcmMvbWFpbi9rb3RsaW4vZGUvZnJhdW5ob2Zlci9haXNlYy9jcGcvZnJvbnRlbmRzL3B5dGhvbi9TdGF0ZW1lbnRIYW5kbGVyLmt0) | `84.06% <50.00%> (ø)` | | | [...ain/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2FScopeManager.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL1Njb3BlTWFuYWdlci5rdA==) | `78.40% <66.66%> (+1.09%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1856/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: