You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,12 +93,12 @@ don't miss any language features of newer Java releases while supporting a broad
93
93
Code conventions
94
94
-----
95
95
We use the standard Kotlin coding conventions. Intellij should select the correct style automatically because we checked
96
-
in the `.idea/codeStyle` folder. Furthermore, we're also using [Kotlinter](https://plugins.gradle.org/plugin/org.jmailen.kotlinter). You can run formatting manually using Gradle:
96
+
in the `.idea/codeStyle` folder as well as defined rules in `.editorconfig`. Furthermore, we're also using [ktlint-gradle](https://github.com/JLLeitschuh/ktlint-gradle). You can run formatting manually using Gradle:
97
97
98
98
```bash
99
-
./gradlew lintKotlin# lint kotlin sources
100
-
./gradlew :graphql-dgs-extended-validation:lintKotlin# lint kotlin sources for a single module
101
-
./gradlew formatKotlin# format Kotlin Sources
99
+
./gradlew ktlintCheck# lint kotlin sources
100
+
./gradlew :graphql-dgs-extended-validation:ktlintCheck# lint kotlin sources for a single module
101
+
./gradlew ktlintFormat# format Kotlin Sources
102
102
```
103
103
104
104
We recommend installing a Git push hook to run the style check to prevent failing the build for your branch.
0 commit comments