square / anvil

A Kotlin compiler plugin to make dependency injection with Dagger 2 easier.
Apache License 2.0
1.31k stars 80 forks source link

update `ij_kotlin.*` .editorconfig properties to match KtLint behavior #942

Closed RBusarow closed 6 months ago

RBusarow commented 6 months ago

The biggest discrepancy between IDE format and KtLint format is regarding blank lines in when blocks. The IDE wants to add them, but IntelliJ doesn't. So, I wind up reverting a lot of formatting changes before every pull request. 😠

I ran IDE format on the whole project after the .editorconfig changes, and the diff was satisfyingly small.