Skip to main content

Module version

Module version 

Source
Expand description

Which ktlint CLI the drop-in imitates: --ktlint-version=<1.8|2.0> (ktrs only, hidden), else ktrs_ktlint_version of the .editorconfig that applies to the working directory, else 2.0. Chosen once per run and passed to the engine as an .editorconfig override, so every file follows it. The engine and rule switches: research/26-ktlint-18-mode.md.

Constants§

KTLINT_VERSION_OPTION

Functions§

exit_value
exitKtLintProcess: 1.8 exits 1 for every failure but an unparsable format result (123).
package
The JVM package prefix in logger and exception class names.
release
The release --version and the SARIF reporter show.
repository
The GitHub repository named in messages and git hooks.
resolve_ktlint_version
The --ktlint-version value among tokens (before --; the last one wins), else the working directory’s .editorconfig. Err is a Clikt-style usage error message.
with_ktlint_version
editor_config_override with version set, which every file’s .editorconfig then reports.