Location

constructor(source: SourceLocation, text: TextLocation, filePath: FilePath)
constructor(source: SourceLocation, endSource: SourceLocation, text: TextLocation, filePath: FilePath)


constructor(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)

constructor(source: SourceLocation, text: TextLocation, file: String, filePath: FilePath = FilePath.fromAbsolute(Path(file)))

Deprecated

Consider relative path by passing a [FilePath]