pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.06k stars 504 forks source link

Fix `blank line before declarations` rule code example #2657

Closed k-taro56 closed 1 month ago

k-taro56 commented 1 month ago

Description

The code example used to demonstrate disallowed code was correctly formatted (i.e., there were blank lines before declarations). This change corrects the example to properly reflect code that violates the rule.

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

Documentation is updated. See difference between snapshot and release documentation

k-taro56 commented 1 month ago

I learned a lot! Thank you :)