Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (25 loc) · 1.03 KB

File metadata and controls

39 lines (25 loc) · 1.03 KB

Formatter Plugin

QualityCodeFormatter

The plugin helps to format source code of your project and warns about issues. It makes use of the spotless plugin and applies bitfunk flavoured default configuration.

Features

As this plugin wraps spotless, it offers the same features with bitfunk project configuration. For kotlin it's using ktlint and Markdown is using prettier.

Supported source files:

  • Kotlin (.kt)
  • Kotlin Gradle (.kts)
  • Markdown (.md)

Installation

Add the following to your project root build.gradle/build.gradle.kts file:

plugins {
    id("eu.bitfunk.gradle.plugin.quality.formatter")
}

Usage

To check source code formatting

./gradlew spotlessCheck

For applying source code formatting

./gradlew spotlessApply