Skip to content

Commit 09b24b2

Browse files
authored
Increase code length further to 100K (#116)
* Increase code length further to 100K Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com> * Update maven version Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com> --------- Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 2b4967d commit 09b24b2

File tree

3 files changed

+529
-430
lines changed

3 files changed

+529
-430
lines changed

ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LABEL maintainer="appthreat" \
1212
org.opencontainers.docker.cmd="docker run --rm -v /tmp:/tmp -v $HOME:$HOME -v $(pwd):/app:rw -it ghcr.io/appthreat/chen chennai"
1313

1414
ARG JAVA_VERSION=23.0.2-tem
15-
ARG MAVEN_VERSION=3.9.9
15+
ARG MAVEN_VERSION=3.9.10
1616
ARG GRADLE_VERSION=8.13
1717
ARG RUBY_VERSION=3.4.4
1818
ARG SCALA_VERSION=3.6.4

platform/frontends/x2cpg/src/main/scala/io/appthreat/x2cpg/AstNodeBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait AstNodeBuilder[Node, NodeProcessor]:
3232
protected def columnEnd(element: Node): Option[Integer]
3333

3434
private val MinCodeLength: Int = 50
35-
private val DefaultMaxCodeLength: Int = 16000
35+
private val DefaultMaxCodeLength: Int = 100000
3636
// maximum length of code fields in number of characters
3737
private lazy val MaxCodeLength: Int =
3838
sys.env.get("CHEN_MAX_CODE_LENGTH").flatMap(_.toIntOption).getOrElse(DefaultMaxCodeLength)

0 commit comments

Comments
 (0)