fleetlint Policy for a fleet of repositories
v0.4
Getting started

lint/configured/kotlin

A linter is configured

Implements lint/configured for kotlin.

Severitywarning
Tiers1, 2
Stackskotlin
Scopeeach
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

The detekt Gradle plugin is applied in the build (this build, a parent build or a convention plugin), so ./gradlew check runs it. Another analyzer is added with accept:.

Why

Kotlin’s compiler accepts swallowed exceptions; detekt is where they are caught.

Fix

Apply the detekt Gradle plugin (id("io.gitlab.arturbosch.detekt") version "1.23.8") with buildUponDefaultConfig and config/detekt/detekt.yml; fleetlint fix --apply writes the configuration, the plugin is added by hand.

Agent instruction: Apply the detekt Gradle plugin 1.23.x with buildUponDefaultConfig = true and config.setFrom(“config/detekt/detekt.yml”); write config/detekt/detekt.yml from the template; fix the findings instead of adding a baseline entry.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#kotlin-jvm--android


Generated by fleetlint docs from catalog v0.1.0.