diff --git a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsExtension.kt b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsExtension.kt index 206440ad..e4a1c9e6 100644 --- a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsExtension.kt +++ b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsExtension.kt @@ -81,7 +81,7 @@ interface SpotBugsExtension { /** * Property to set the directory to generate report files. Default is `"$buildDir/reports/spotbugs"`. * - * Note that each [SpotBugsTask] creates own sub-directory in this directory. + * Note that each [SpotBugsTask] creates own subdirectory in this directory. */ val reportsDir: DirectoryProperty diff --git a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt index 368c97bb..29bb8126 100644 --- a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt +++ b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsReport.kt @@ -97,6 +97,7 @@ abstract class SpotBugsReport } } + @Suppress("MemberVisibilityCanBePrivate") fun configure(action: Action): Report { action.execute(this) return this diff --git a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt index dae3e4f9..f59062e1 100644 --- a/src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt +++ b/src/main/kotlin/com/github/spotbugs/snom/SpotBugsTask.kt @@ -312,8 +312,8 @@ abstract class SpotBugsTask : DefaultTask(), VerificationTask { else -> throw InvalidUserDataException("$name is invalid as the report name") } } - setDescription("Run SpotBugs analysis.") - setGroup(JavaBasePlugin.VERIFICATION_GROUP) + description = "Run SpotBugs analysis." + group = JavaBasePlugin.VERIFICATION_GROUP } /** diff --git a/src/main/kotlin/com/github/spotbugs/snom/internal/OutputScanner.kt b/src/main/kotlin/com/github/spotbugs/snom/internal/OutputScanner.kt index 0aab98a3..12dd558a 100644 --- a/src/main/kotlin/com/github/spotbugs/snom/internal/OutputScanner.kt +++ b/src/main/kotlin/com/github/spotbugs/snom/internal/OutputScanner.kt @@ -24,7 +24,6 @@ import java.io.OutputStream internal class OutputScanner(out: OutputStream) : FilterOutputStream(out) { private val builder = ByteArrayOutputStream() var isFailedToReport = false - get() = field override fun write( b: ByteArray,