Skip to content

Commit 010bf26

Browse files
committed
fix the display of the more info message in the console report
1 parent d7de4fa commit 010bf26

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

nebula-archrules-gradle-plugin/src/main/kotlin/com/netflix/nebula/archrules/gradle/PrintConsoleReportTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract class PrintConsoleReportTask : DefaultTask() {
5454
consoleOutput.style(StyledTextOutput.Style.Header)
5555
.text("Note: ")
5656
.style(StyledTextOutput.Style.Normal)
57-
.println("In order to see details of ${detailsThreshold.orElse(Priority.LOW)} and lower priority rules, run build with --info")
57+
.println("In order to see details of rules with priority less than ${detailsThreshold.getOrElse(Priority.LOW)}, run build with --info")
5858
}
5959
ViolationsUtil.printReport(byRule, consoleOutput, detailsThreshold.orNull, logger.isInfoEnabled)
6060
}

nebula-archrules-gradle-plugin/src/test/kotlin/com/netflix/nebula/archrules/gradle/ArchrulesRunnerPluginTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ class ArchrulesRunnerPluginTest {
159159
assertThat(jsonReport)
160160
.`as`("json report created")
161161
.exists()
162+
163+
assertThat(result.output)
164+
.`as`("filtered details message is printed")
165+
.contains("Note: In order to see details of rules with priority less than MEDIUM,")
162166
}
163167

164168
@Test

0 commit comments

Comments
 (0)