Skip to content

Commit 68a084c

Browse files
committed
Fix a few code style issues
1 parent c5c909b commit 68a084c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugin/src/main/kotlin/org/neotech/plugin/rootcoverage/RootCoveragePlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.gradle.testing.jacoco.tasks.JacocoReport
1515
@Suppress("unused")
1616
class RootCoveragePlugin : Plugin<Project> {
1717

18-
private lateinit var rootProjectExtension: RootCoveragePluginExtension;
18+
private lateinit var rootProjectExtension: RootCoveragePluginExtension
1919

2020
override fun apply(project: Project) {
2121
if (project.rootProject !== project) {
@@ -142,7 +142,7 @@ class RootCoveragePlugin : Plugin<Project> {
142142
val extension = subProject.extensions.findByName("android")
143143
if (extension == null) {
144144
// TODO support java modules?
145-
subProject.logger.warn("Note: Skipping code coverage for module '${subProject.name}', currently the RootCoveragePlugin does not yet support Java Library Modules.");
145+
subProject.logger.warn("Note: Skipping code coverage for module '${subProject.name}', currently the RootCoveragePlugin does not yet support Java Library Modules.")
146146
return
147147
} else if (extension is com.android.build.gradle.FeatureExtension) {
148148
// TODO support feature modules?

plugin/src/test/kotlin/org/neotech/plugin/rootcoverage/CsvCoverageReport.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CoverageReport private constructor(
2424
find(packageName, className).assertFullCoverageCoverage()
2525
}
2626

27-
fun find(packageName: String, className: String): CSVRecord? = records.find {
27+
private fun find(packageName: String, className: String): CSVRecord? = records.find {
2828
it[packageColumn] == packageName && it[classColumn] == className
2929
}
3030

plugin/src/test/kotlin/org/neotech/plugin/rootcoverage/util/SystemOuputWriter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import java.io.Writer
88
* adding extra new lines to the generated output in the console. This is a small fix for that, it
99
* might not be the fastest, but it works.
1010
*/
11-
class SystemOutputWriter private constructor(private val output: OutputStream) : Writer() {
11+
class SystemOutputWriter private constructor(output: OutputStream) : Writer() {
1212

1313
private val bufferedWriter = output.bufferedWriter(Charsets.UTF_8)
1414

0 commit comments

Comments
 (0)