Software Alternatives, Accelerators & Startups
Table of contents
  1. Videos
  2. Social Mentions
  3. Comments

ktfmt

A program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions. - facebookincubator/ktfmt

ktfmt Reviews and details

Screenshots and images

  • ktfmt Landing page
    Landing page //
    2023-08-29

Badges

Promote ktfmt. You can add any of these badges on your website.

SaaSHub badge
Show embed code

Videos

Fragmented Podcast Episode #242: Kotlin Code Formatting with ktfmt and spotless

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about ktfmt and what they use it for.
  • Pre-push Hooks
    The script below will run ktfmt over a Kotlin codebase and fail the push if any of the files are not well-formatted. It does also use a custom Gradle plugin we built around ktfmt, which accepts a --run-over change set. This script will leave the fixed formatting changes in the tree, awaiting the developer to intervene, commit, and try again. - Source: dev.to / 2 months ago
  • Google's Kotlin Style Guide vs Kotlin Official Code Style
    My team uses ktfmt. It is more aggressive and opinionated about formatting than ktlint, which we view as a good thing. Source: about 1 year ago
  • What are the good code formatters for Kotlin?
    I can recommend ktfmt. It is based on the fast Google Java Formatter and produces deterministic formatting. Plugins for Maven, Gradle and IntelliJ are available. Source: over 1 year ago
  • From zero to 10M lines of Kotlin
    I wanted to post that ktfmt, the FB Kotlin formatter, is much less well-known than ktlint. IMO, it produces the most (subjectively) readable code, and is the only one that doesn't leave room for you to inject personal style in certain places. (ktlint will let you get away with one of several ways of formatting code, so long as it falls within some guidelines, which can lead to inconsistent formatting). It's a... - Source: Hacker News / over 1 year ago
  • A few Kotlin questions from a Rustacean
    Others have covered most of your questions, but since you asked about linters: if you want a highly opinionated formatter in the spirit of gofmt or google-java-format, you can check out ktfmt. Source: about 2 years ago

Do you know an article comparing ktfmt to other products?
Suggest a link to a post with product alternatives.

Suggest an article

ktfmt discussion

Log in or Post with

This is an informative page about ktfmt. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.