Skip to content

Commit

Permalink
Merge pull request #8 from scscgit/patch-1
Browse files Browse the repository at this point in the history
docs: add kotlin syntax to sonarlint config of java project, fix #7
  • Loading branch information
Lucas3oo authored Aug 16, 2024
2 parents 7a10466 + 76b9563 commit cd0b902
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ If [the `java-test-fixtures` plugin](https://docs.gradle.org/current/userguide/j

Configure `Sonarlint` directly, to set task-specific properties.

Groovy syntax:
```groovy
// Example to configure HTML report
sonarlintMain {
Expand Down Expand Up @@ -147,7 +148,20 @@ sonarlintMain {
exclude '**/org/example/some/package2/*'
}
```

Kotlin syntax:
```gradle.kts
tasks.sonarlintMain {
reports {
reports.create("html") {
enabled = true
outputLocation = layout.buildDirectory.file("reports/sonarlint/sonarlint.html")
}
}
}
tasks.sonarlintTest {
ignoreFailures = true
}
```

### Apply to Node project

Expand Down

0 comments on commit cd0b902

Please sign in to comment.