Skip to content

Commit 59497db

Browse files
committed
2 parents 0cab7df + a965d23 commit 59497db

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

src/main/scala/org/polystat/HoconConfig.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ object HoconConfig:
9090
val includeRules = "includeRules"
9191
val excludeRules = "excludeRules"
9292
val j2eo = "j2eo"
93-
val outputsConsole = "outputs.console"
94-
val outputsDirs = "outputs.dirs"
95-
val outputsFiles = "output.files"
93+
val outputs = "outputs"
94+
val outputsConsole = s"$outputs.console"
95+
val outputsDirs = s"$outputs.dirs"
96+
val outputsFiles = s"$outputs.files"
9697
val explanation = s"""
9798
|$toplevel.$inputLanguage
9899
| The type of input files which will be analyzed. This key must be present.

src/test/scala/org/polystat/HoconConfigTests.scala

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class HoconConfigTests extends munit.FunSuite:
2424
cfg = """|polystat {
2525
| lang = eo
2626
| input = sandbox
27-
| outputTo = tmp
27+
| outputs = {
28+
| dirs = [tmp]
29+
| console = true
30+
| files = [/tmp/src/eo, /src/eo]
31+
| }
2832
| outputFormats = [sarif]
2933
|}
3034
""".stripMargin,
@@ -36,7 +40,11 @@ class HoconConfigTests extends munit.FunSuite:
3640
input = Input.FromDirectory(Path("sandbox")),
3741
tmp = None,
3842
outputFormats = List(OutputFormat.Sarif),
39-
output = Output.ToDirectory(Path("tmp")),
43+
output = Output(
44+
console = true,
45+
files = List(Path("/tmp/src/eo"), Path("/src/eo")),
46+
dirs = List(Path("tmp")),
47+
),
4048
),
4149
)
4250
),

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "0.1.5-SNAPSHOT"
1+
ThisBuild / version := "0.1.6-SNAPSHOT"

0 commit comments

Comments
 (0)