Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ktlint 0.29.0 and fix warnings on incremental build properties #75

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

jeremymailen
Copy link
Owner

@jeremymailen jeremymailen commented Oct 4, 2018

No description provided.

@jeremymailen jeremymailen changed the title Upgrade to ktlint 0.29.0 and fix warnings on incremental build proper… Upgrade to ktlint 0.29.0 and fix warnings on incremental build properties Oct 4, 2018
@@ -13,6 +14,7 @@ import java.io.File

open class FormatTask : SourceTask() {

@Internal
Copy link
Owner Author

@jeremymailen jeremymailen Oct 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do this to prevent incremental build, which doesn't work quite right if you revert after since this task modifies input files. Gradle warns without it annotated.

@@ -26,6 +27,10 @@ open class LintTask : SourceTask() {
@PathSensitive(PathSensitivity.RELATIVE)
lateinit var reports: Map<String, File>

@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
override fun getSource() = super.getSource()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The desirable path sensitivity does not get inherited from SourceTask so it looks like we need to override just to annotate it.

@jeremymailen jeremymailen merged commit 48f45a3 into master Oct 4, 2018
@jeremymailen jeremymailen deleted the ktlint-0.29.0 branch October 4, 2018 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant