-
Notifications
You must be signed in to change notification settings - Fork 62
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
First attempt to implement bug reasoning logic for Query API #765
Conversation
Just a suggestion: Wouldn't it be easier to use Kotlin itself as the script language rather than try to parse specific string-based fields and identifiers? This way we could probably re-use all the existing node types and their property and not build an additional property layer on top of it. For example https://medium.com/adobetech/building-elegant-dsls-with-kotlin-707726c5ed21 |
…o console/queries
cpg-core/src/main/java/de/fraunhofer/aisec/cpg/graph/statements/expressions/BinaryOperator.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
cpg-console/src/main/kotlin/de/fraunhofer/aisec/cpg/query/Query.kt
Outdated
Show resolved
Hide resolved
cpg-console/src/main/kotlin/de/fraunhofer/aisec/cpg/query/QueryTree.kt
Outdated
Show resolved
Hide resolved
cpg-core/src/main/java/de/fraunhofer/aisec/cpg/graph/Extensions.kt
Outdated
Show resolved
Hide resolved
cpg-core/src/main/java/de/fraunhofer/aisec/cpg/graph/Extensions.kt
Outdated
Show resolved
Hide resolved
cpg-console/src/main/kotlin/de/fraunhofer/aisec/cpg/query/Query.kt
Outdated
Show resolved
Hide resolved
cpg-analysis/src/main/kotlin/de/fraunhofer/aisec/cpg/query/Query.kt
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose merging an initial version of this so we can tweak it further in smaller PRs
We probably want to simplify the identification of bugs by providing an API to query the graph for vulnerabilities.
Tasks:
cpg-analysis
moduleSee WIP wiki page concerning the Query API.