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

Revert "Updated joern, cpg, and re-used x2cpg API" #346

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
java-version: '11'
cache: 'sbt'
- name: Compile and run tests
run: sbt test
run: sbt clean +test
formatting:
runs-on: ubuntu-22.04
steps:
Expand All @@ -34,6 +34,6 @@ jobs:
java-version: '11'
cache: 'sbt'
- name: Check formatting
run: sbt scalafmtCheck Test/scalafmtCheck
run: sbt scalafmtCheck test:scalafmtCheck
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt'"
if: ${{ failure() }}
11 changes: 5 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
val cpgVersion = "1.6.13"
val joernVersion = "2.0.392"
val cpgVersion = "1.6.11"
val joernVersion = "2.0.335"

val gitCommitString = SettingKey[String]("gitSha")

Expand Down Expand Up @@ -27,11 +27,10 @@ lazy val commonSettings = Seq(
"io.shiftleft" %% "codepropertygraph" % cpgVersion,
"io.joern" %% "x2cpg" % joernVersion,
"com.github.scopt" %% "scopt" % "4.1.0",
// do not update to 23.x as this requires JDK >= 19
"org.graalvm.js" % "js" % "22.3.5",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.17.1",
"org.graalvm.js" % "js" % "22.3.4",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.15.3",
"com.atlassian.sourcemap" % "sourcemap" % "2.0.0",
"commons-io" % "commons-io" % "2.16.1",
"commons-io" % "commons-io" % "2.13.0",
"org.slf4j" % "slf4j-api" % "2.0.7",
"org.apache.logging.log4j" % "log4j-slf4j2-impl" % "2.20.0" % Optional,
"org.apache.logging.log4j" % "log4j-core" % "2.20.0" % Optional,
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.0.27")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
742 changes: 411 additions & 331 deletions src/main/scala/io/shiftleft/js2cpg/astcreation/AstCreator.scala

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.shiftleft.js2cpg.datastructures.OrderTracker
import overflowdb.BatchedUpdate.DiffGraphBuilder
import org.slf4j.LoggerFactory

trait AstEdgeBuilder { this: AstCreator =>
class AstEdgeBuilder(private val diffGraph: DiffGraphBuilder) {

private val logger = LoggerFactory.getLogger(getClass)

Expand Down
Loading
Loading