Skip to content

Commit

Permalink
Exposed exclusionPatterns as option
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Dec 11, 2024
1 parent b330d57 commit c9376ff
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,15 @@ class Application : Callable<Int> {
)
private var topLevel: File? = null

@CommandLine.Option(
names = ["--exclusion-patterns"],
description =
[
"Set top level directory of project structure. Default: Largest common path of all source files"
]
)
private var exclusionPatterns: List<String> = listOf()

@CommandLine.Option(
names = ["--benchmark-json"],
description = ["Save benchmark results to json file"]
Expand Down Expand Up @@ -450,6 +459,7 @@ class Application : Callable<Int> {
.optionalLanguage("de.fraunhofer.aisec.cpg.frontends.jvm.JVMLanguage")
.optionalLanguage("de.fraunhofer.aisec.cpg.frontends.ini.IniFileLanguage")
.loadIncludes(loadIncludes)
.exclusionPatterns(*exclusionPatterns.toTypedArray())
.addIncludesToGraph(loadIncludes)
.debugParser(DEBUG_PARSER)
.useUnityBuild(useUnityBuild)
Expand Down

0 comments on commit c9376ff

Please sign in to comment.