-
I am trying to integrate ktlint to my project.
My project level gradle file
```
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
…
-
What still needs to be done for 1.0.0 release?
Most detekt components are fairly mature. What a 1.0.0 release means is the API and configuration DSLs have to be locked down (see #1201 and [semver.o…
3flex updated
4 years ago
-
pro:
- get fixes asap from ktlint
- more rules?
neg:
- different kotlinc versions
- two engines -> same work twice? -> shortcuts? invoke ktlint
- detekt additional formatting rules split
-
-
Example code, formatted as we would like it to be:
```
enum class Color(val displayName: String, val value: Int) {
RED(
displayName = "Red",
value = 1
),
BLUE(
displayName = …
-
It seems that `ktlint-maven-plugin` doesn't have an option to disable some rules (`disabled_rules` analogue of the ktlint)
-
```
ktlint:
[ktlint] [DEBUG] Discovered ruleset "standard"
[ktlint] [DEBUG] Discovered reporter "plain"
[ktlint] [DEBUG] Discovered reporter "json"
[ktlint] [DEBUG] Discovered reporte…
-
**I added the .editorconfig but still not able to disable the filename rule.**
`disabled_rules = filename`
**Turned on the debug and could see the settings are being applied**
```[DEBUG] Discove…
-
Current code has some styling issues and inconsistency that need to be fixed, for example:
1. Use of `;` in kotlin code
2. Irregular new lines between lines of code
3. Indentation issues in diffe…
-
Today Google has released the official Kotlin Android style guides, maybe there's something in there that is worth implementing, if anything as an "android" profile that is used by default on Android …