Software Alternatives, Accelerators & Startups

ktfmt VS TSLint

Compare ktfmt VS TSLint and see what are their differences

ktfmt logo ktfmt

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

TSLint logo TSLint

An extensible static analysis linter for the TypeScript language
  • ktfmt Landing page
    Landing page //
    2023-08-29
  • TSLint Landing page
    Landing page //
    2023-08-28

ktfmt videos

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

TSLint videos

Tslint.json and fixing code Quality || Angular 8 [MOST TRICKY INTERVIEW CONCEPT]

More videos:

  • Review - Migrating from TSLint to ESLint is a pain | Problems and Solutions
  • Review - Good TSLint Rules | Seattle TypeScript | 6/26/19

Category Popularity

0-100% (relative to ktfmt and TSLint)
Code Coverage
51 51%
49% 49
Code Review
30 30%
70% 70
Code Analysis
46 46%
54% 54
Code Quality
100 100%
0% 0

User comments

Share your experience with using ktfmt and TSLint. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, ktfmt seems to be more popular. It has been mentiond 5 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

ktfmt mentions (5)

  • 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 / about 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

TSLint mentions (0)

We have not tracked any mentions of TSLint yet. Tracking of TSLint recommendations started around Mar 2021.

What are some alternatives?

When comparing ktfmt and TSLint, you can also consider the following products

SonarQube - SonarQube, a core component of the Sonar solution, is an open source, self-managed tool that systematically helps developers and organizations deliver Clean Code.

SensioLabs Insight - PHP Project Quality Done Right.

Prettier - An opinionated code formatter

ESLint - The fully pluggable JavaScript code quality tool

CodeClimate - Code Climate provides automated code review for your apps, letting you fix quality and security issues before they hit production. We check every commit, branch and pull request for changes in quality and potential vulnerabilities.

RuboCop - A Ruby static code analyzer, based on the community Ruby style guide.