api / org.gradle.api.plugins.quality / Checkstyle / getSource

getSource

@PathSensitive(PathSensitivity.RELATIVE) open fun getSource(): FileTree

Overrides SourceTask.getSource

{@inheritDoc}

The sources for this task are relatively relocatable even though it produces output that includes absolute paths. This is a compromise made to ensure that results can be reused between different builds. The downside is that up-to-date results, or results loaded from cache can show different absolute paths than would be produced if the task was executed.