Skip to content

Guardrails

kotlin ​

4 guardrails, all at version v1.

GuardrailDefault severityWhat it checks
kotlin/build-manifesterrorThe project declares a recognised build manifest, so the build is reproducible and tooling can find it.
kotlin/dependencies-lockedwarningThe Gradle build commits the lock files that resolve its dependencies, so the same commit builds from the same versions.
kotlin/gradle-wrapperwarningA Gradle project commits gradlew and the wrapper properties that pin the Gradle version.
kotlin/kotlin-version-pinnedwarningThe build declares the Kotlin compiler version, and it is no older than the configured floor.

Shared inputs ​

Every kotlin guardrail declares these inputs. Individual guardrails can add their own.

InputDescriptionDefault
projectDirDirectory holding the project, relative to the directory the CLI runs in..

You configure every guardrail in this category the same way, in the guardrails.checks array of buildnote.json. Configuring guardrails lists every option, and Guardrails lets you search the whole library.

Buildnote Limited
Registered in England and Wales, Reg: 16140412