ktlint

Ktlint is a code controller and formater that does not require improved configuration for Kotlin projects. It comes with built-in rule sets and formatting tools, also supports .editorconfig files. offers built-in reporting formats such as plain, json, html and checkstyle, and can be expanded with custom rule sets.

KT

ktlint · Code Quality & Review

STARS6.8K
FORKS529
COMMITS0
CONTRIBUTORS0
VERSION1.8.0
UPDATED5 days ago
KotlinLinterFormatterEditorconfigMIT

Common commercial products in this category: SonarCloud, Codacy, DeepSource

What can it do?
  • By scanning your Kotlin source files, you detect style violations.
  • You make your code conform to the standards with automatic formatting feature.
  • You expand the tool by adding custom rule sets and reporters.
User reviews
  • • NeutralGitHub Issue

    Wildcard imports

    “Please forgive my bikeshedding, but I beg to differ with the "no wildcards" rule. My primary argument is that intellij does add wildcard imports in the default configuration, and I think I should not have to configure intellij to play nice with ktlint. Adding `// ktlint-disable…”

  • • NeutralGitHub Issue

    Annotation wrapping before explicit constructor (ktlint_official)

    “## Expected Behavior Our Android project contains many class declarations that look like this: ```kotlin class Foo @Inject constructor( private val someDependency: SomeDependency, private val anotherDependency: AnotherDependency, ) : Bar { //... } ``` In my opinion, this should…”

My note

Alternative pages

More in: Code Quality & Review