• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:kotlin +full:- +full:macos

1Build%20and%20Test/badge.svg)](https://github.com/facebook/ktfmt/actions/workflows/build_and_test.…
3 …t` is a program that pretty-prints (formats) Kotlin code, based on [google-java-format](https://gi…
12 | ---- | ---- |
18 | ------ | --------|
31 [ktfmt IntelliJ plugin](https://plugins.jetbrains.com/plugin/14912-ktfmt)
38 IDEA→Preferences...→Editor→ktfmt Settings` on macOS) and
45 triggered from the `Code` menu or with the Ctrl-Alt-L (by default) keyboard
50 [`.editorconfig` file](https://www.jetbrains.com/help/idea/configuring-code-style.html#editorconfig)
51 to include the Kotlin section from one of the files inside
67 ### from the command-line
73 java -jar /path/to/ktfmt-<VERSION>-jar-with-dependencies.jar [--dropbox-style] [files...]
76 `--dropbox-style` makes `ktfmt` use a block indent of 4 spaces instead of 2. See below for details.
79 formatting (apart from `--dropbox-style`). This is a deliberate design decision to unify our code
84-gradle)](https://github.com/cortinico/ktfmt-gradle) is available on the Gradle Plugin Portal. To …
86 …with the [ktfmt Gradle plugin](https://github.com/diffplug/spotless/tree/main/plugin-gradle#ktfmt).
90 …) with the [ktfmt Maven plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven#ktfmt).
92 ### using pre-commit hooks
94-commit hook](https://pre-commit.com/hooks.html) is implemented in [language-formatters-pre-commit
100 …` uses google-java-format's underlying engine, and as such, many items on [google-java-format's FA…
104 …vior. See https://github.com/google/google-java-format/wiki/FAQ#i-just-need-to-configure-it-a-bit-
106 These two properties make `ktfmt` a good fit in large Kotlin code bases, where consistency is very …
108 We created `ktfmt` because `ktlint` and IntelliJ sometime fail to produce nice-looking code that fi…
110 ### `ktfmt` uses a 2-space indent; why not 4? any way to change that?
112 Two reasons -
113 1. Many of our projects use a mixture of Kotlin and Java, and we found the back-and-forth in styles…
114 2. From a pragmatic standpoint, the formatting engine behind google-java-format uses more whitespac…
116 …scape-hatch for projects that absolutely cannot make the move to `ktfmt` because of 2-space: the `
124 …the bottom of "Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler" (see https:/…
133 * Run `java -jar core/target/ktfmt-<VERSION>-jar-with-dependencies.jar`