Skip to content

Commit a0ff8d9

Browse files
authored
Updated docs for onCheck properties
Resolves #213
1 parent cb8280d commit a0ff8d9

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ kover {
248248
}
249249

250250
xmlReport {
251-
onCheck.set(false) // true to run koverXmlReport task during the execution of the check task
251+
onCheck.set(false) // true to run koverXmlReport task during the execution of the check task (if it exists) of the current project
252252
reportFile.set(layout.buildDirectory.file("my-project-report/result.xml")) // change report file name
253253
overrideFilters {
254254
classes { // override common class filter
@@ -259,7 +259,7 @@ kover {
259259
}
260260

261261
htmlReport {
262-
onCheck.set(false) // true to run koverHtmlReport task during the execution of the check task
262+
onCheck.set(false) // true to run koverHtmlReport task during the execution of the check task (if it exists) of the current project
263263
reportDir.set(layout.buildDirectory.dir("my-project-report/html-result")) // change report directory
264264
overrideFilters {
265265
classes { // override common class filter
@@ -270,7 +270,7 @@ kover {
270270
}
271271

272272
verify {
273-
onCheck.set(true) // true to run koverVerify task during the execution of the check task
273+
onCheck.set(true) // true to run koverVerify task during the execution of the check task (if it exists) of the current project
274274
rule { // add verification rule
275275
isEnabled = true // false to disable rule checking
276276
name = null // custom name for the rule
@@ -312,7 +312,7 @@ kover {
312312
}
313313
314314
xmlReport {
315-
onCheck.set(false) // true to run koverXmlReport task during the execution of the check task
315+
onCheck.set(false) // true to run koverXmlReport task during the execution of the check task (if it exists) of the current project
316316
reportFile.set(layout.buildDirectory.file("my-project-report/result.xml")) // change report file name
317317
overrideFilters {
318318
classes { // override common class filter
@@ -323,7 +323,7 @@ kover {
323323
}
324324
325325
htmlReport {
326-
onCheck.set(false) // true to run koverHtmlReport task during the execution of the check task
326+
onCheck.set(false) // true to run koverHtmlReport task during the execution of the check task (if it exists) of the current project
327327
reportDir.set(layout.buildDirectory.dir("my-project-report/html-result")) // change report directory
328328
overrideFilters {
329329
classes { // override common class filter
@@ -334,7 +334,7 @@ kover {
334334
}
335335
336336
verify {
337-
onCheck.set(true) // true to run koverVerify task during the execution of the check task
337+
onCheck.set(true) // true to run koverVerify task during the execution of the check task (if it exists) of the current project
338338
rule { // add verification rule
339339
enabled = true // false to disable rule checking
340340
name = null // custom name for the rule
@@ -392,7 +392,7 @@ koverMerged {
392392

393393

394394
xmlReport {
395-
onCheck.set(false) // true to run koverMergedXmlReport task during the execution of the check task
395+
onCheck.set(false) // true to run koverMergedXmlReport task during the execution of the check task (if it exists) of the current project
396396
reportFile.set(layout.buildDirectory.file("my-merged-report/result.xml")) // change report file name
397397
overrideClassFilter { // override common class filter
398398
includes += "com.example2.*" // override class inclusion rules
@@ -401,7 +401,7 @@ koverMerged {
401401
}
402402

403403
htmlReport {
404-
onCheck.set(false) // true to run koverMergedHtmlReport task during the execution of the check task
404+
onCheck.set(false) // true to run koverMergedHtmlReport task during the execution of the check task (if it exists) of the current project
405405
reportDir.set(layout.buildDirectory.dir("my-merged-report/html-result")) // change report directory
406406
overrideClassFilter { // override common class filter
407407
includes += "com.example2.*" // override class inclusion rules
@@ -410,7 +410,7 @@ koverMerged {
410410
}
411411

412412
verify {
413-
onCheck.set(true) // true to run koverMergedVerify task during the execution of the check task
413+
onCheck.set(true) // true to run koverMergedVerify task during the execution of the check task (if it exists) of the current project
414414
rule { // add verification rule
415415
isEnabled = true // false to disable rule checking
416416
name = null // custom name for the rule
@@ -453,7 +453,7 @@ koverMerged {
453453
454454
455455
xmlReport {
456-
onCheck.set(false) // true to run koverMergedXmlReport task during the execution of the check task
456+
onCheck.set(false) // true to run koverMergedXmlReport task during the execution of the check task (if it exists) of the current project
457457
reportFile.set(layout.buildDirectory.file("my-merged-report/result.xml")) // change report file name
458458
overrideClassFilter { // override common class filter
459459
includes.add("com.example2.*") // override class inclusion rules
@@ -462,7 +462,7 @@ koverMerged {
462462
}
463463
464464
htmlReport {
465-
onCheck.set(false) // true to run koverMergedHtmlReport task during the execution of the check task
465+
onCheck.set(false) // true to run koverMergedHtmlReport task during the execution of the check task (if it exists) of the current project
466466
reportDir.set(layout.buildDirectory.dir("my-merged-report/html-result")) // change report directory
467467
overrideClassFilter { // override common class filter
468468
includes.add("com.example2.*") // override class inclusion rules
@@ -471,7 +471,7 @@ koverMerged {
471471
}
472472
473473
verify {
474-
onCheck.set(true) // true to run koverMergedVerify task during the execution of the check task
474+
onCheck.set(true) // true to run koverMergedVerify task during the execution of the check task (if it exists) of the current project
475475
rule { // add verification rule
476476
isEnabled = true // false to disable rule checking
477477
name = null // custom name for the rule

src/main/kotlin/kotlinx/kover/api/KoverConfig.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public open class KoverProjectXmlConfig @Inject constructor(objects: ObjectFacto
190190
internal val filters: KoverProjectFilters = objects.newInstance(KoverProjectFilters::class.java, objects)
191191

192192
/**
193-
* Specifies whether the XML report generation task should be executed before the `check` task.
193+
* Specifies whether the XML report generation task should be executed before the `check` task (if it exists) of the current project.
194194
*
195195
* `false` by default.
196196
*/
@@ -216,7 +216,7 @@ public open class KoverProjectHtmlConfig @Inject constructor(private val objects
216216
internal val taskFilters: KoverProjectFilters = objects.newInstance(KoverProjectFilters::class.java, objects)
217217

218218
/**
219-
* Specifies whether the HTML report generation task should be executed before the `check` task.
219+
* Specifies whether the HTML report generation task should be executed before the `check` task (if it exists) of the current project.
220220
*
221221
* `false` by default.
222222
*/
@@ -311,7 +311,7 @@ public open class KoverMergedXmlConfig @Inject constructor(private val objects:
311311
internal val classFilter: Property<KoverClassFilter> = objects.property(KoverClassFilter::class.java)
312312

313313
/**
314-
* Specifies whether the merged XML report generation task should be executed before the `check` task.
314+
* Specifies whether the merged XML report generation task should be executed before the `check` task (if it exists) of the current project.
315315
*/
316316
public val onCheck: Property<Boolean> = objects.property(Boolean::class.java)
317317

@@ -334,7 +334,7 @@ public open class KoverMergedHtmlConfig @Inject constructor(private val objects:
334334
internal val classFilter: Property<KoverClassFilter> = objects.property(KoverClassFilter::class.java)
335335

336336
/**
337-
* Specifies whether the merged HTML report generation task should be executed before the `check` task.
337+
* Specifies whether the merged HTML report generation task should be executed before the `check` task (if it exists) of the current project.
338338
*/
339339
public val onCheck: Property<Boolean> = objects.property(Boolean::class.java)
340340

@@ -368,7 +368,7 @@ public open class KoverVerifyConfig @Inject constructor(private val objects: Obj
368368
internal val rules: ListProperty<VerificationRule> = objects.listProperty(VerificationRule::class.java)
369369

370370
/**
371-
* Specifies whether the verification task should be executed before the `check` task.
371+
* Specifies whether the verification task should be executed before the `check` task (if it exists) of the current project.
372372
*
373373
* By default, `true` for project reports and `false` for merged.
374374
*/

0 commit comments

Comments
 (0)