Fix TextLocation of Indentation rule (#4030)

* Fix TextLocation of Indentation rule

Although Indentation applies to the whole file, it's a local rule.
Start of the real location reported by ktlint's offset. And I assume
that the end location should be on first non-whitespace character.

* Add contributor

* Add test for location of Indentation findings
This commit is contained in:
Yundin Vladislav
2021-08-13 23:24:48 +03:00
committed by GitHub
parent 31106ff500
commit deb39b3b29
4 changed files with 29 additions and 3 deletions

View File

@@ -224,6 +224,7 @@ If you contributed to detekt but your name is not in the list, please feel free
- [Dominik Labuda](https://github.com/Dominick1993) - Gradle plugin improvement
- [Andre Paz](https://github.com/andrepaz) - Rule improvement: LongParameterList
- [Alina Rakhimova](https://github.com/AlinaRakhimova) - New rule: BooleanPropertyNaming
- [Vladislav Yundin](https://github.com/Yundin) - Rule fix: Indentation
### Mentions