Location

fun Location(source: SourceLocation, text: TextLocation, filePath: FilePath)
fun Location(source: SourceLocation, endSource: SourceLocation, text: TextLocation, filePath: FilePath)


fun Location(source: SourceLocation, text: TextLocation, locationString: String, file: String)

Deprecated

locationString was removed and won't get passed to the main constructor. Use queries on 'ktElement' instead.

Replace with

import io.gitlab.arturbosch.detekt.api.Location
Location(source, text, file)

fun Location(source: SourceLocation, text: TextLocation, file: String, filePath: FilePath = FilePath.fromAbsolute(Paths.get(file)))

Deprecated

Consider relative path by passing a [FilePath]