Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
Caused by detekt#6390 being merged after detekt#6397 without a rebase first
  • Loading branch information
3flex committed Aug 31, 2023
1 parent 13466b7 commit 453db28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ abstract class FormattingRule(config: Config) : Rule(config) {
// The node used to report the finding may be not the same used for the offset (e.g. in NoUnusedImports).
val (line, column) = positionByOffset(offset)
val location = Location(
SourceLocation(line, column),
source = SourceLocation(line, column),
// Use offset + 1 since ktlint always reports a single location.
TextLocation(offset, offset + 1),
root.toFilePath()
text = TextLocation(offset, offset + 1),
filePath = root.toFilePath()
)
val entity = Entity.from(node.psi, location)

Expand Down

0 comments on commit 453db28

Please # to comment.