bld extension to perform static code analysis with Detekt for Kotlin https://github.com/rife2/bld-detekt
Find a file
2024-08-30 16:59:15 -07:00
.github/workflows Bumped bld to version 2.0.0-SHAPSHOT 2024-07-22 16:27:13 -07:00
.idea Bumped bld to version 2.1.0 2024-08-30 16:55:52 -07:00
.vscode Bumped bld to version 2.1.0 2024-08-30 16:55:52 -07:00
config Bumped to version 0.9.4-SNAPSHOT 2024-04-17 22:37:49 -07:00
examples Version 0.9.6 2024-08-30 16:59:15 -07:00
lib/bld Bumped bld to version 2.1.0 2024-08-30 16:55:52 -07:00
scripts Execute cliargs script before running tests 2024-05-28 13:54:33 -07:00
src Version 0.9.6 2024-08-30 16:59:15 -07:00
.gitignore Initial commit 2023-11-25 14:41:22 -08:00
bld Initial commit 2023-11-25 14:41:22 -08:00
bld.bat Initial commit 2023-11-25 14:41:22 -08:00
README.md Bumped bld to version 2.1.0 2024-08-30 16:55:52 -07:00

bld Extension to Perform Static Code Analysis with Detekt for Kotlin

License Java bld Release Snapshot GitHub CI

To install, please refer to the extensions documentation.

To check all Kotlin source code located in the project, add the following to your build file:

@BuildCommand(summary = "Checks source with Detekt")
public void detekt() throws ExitStatusException, IOException, InterruptedException {
    new DetektOperation()
        .fromProject(this)
        .execute();
}
./bld compile detekt

To generate a Detekt baseline, add the following to your build file:

@BuildCommand(value = "detekt-baseline", summary = "Creates the Detekt baseline")
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
    new DetektOperation()
        .fromProject(this)
        .baseline("detekt-baseline.xml")
        .createBaseline(true)
        .execute();
}
./bld compile detekt-baseline

Please check the DetektOperation documentation for all available configuration options.

Template Project

There is also a Kotlin Template Project with support for Dokka and the Detekt extensions.