-
Notifications
You must be signed in to change notification settings - Fork 551
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
chore: add ktlint in Travis #640
Conversation
c06f48a
to
478e503
Compare
@iamareebjamal Please review |
Don't disable the wildcard imports check, we'll fix it in upcoming commits |
@iamareebjamal updated. Please revie |
app/build.gradle
Outdated
description = "Check Kotlin code style." | ||
classpath = configurations.ktlint | ||
main = "com.github.shyiko.ktlint.Main" | ||
args "src/**/*.kt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add --android
before src
app/build.gradle
Outdated
description = "Fix Kotlin code style deviations." | ||
main = "com.github.shyiko.ktlint.Main" | ||
classpath = configurations.ktlint | ||
args "-F", "src/**/*.kt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Updated |
app/build.gradle
Outdated
@@ -137,12 +137,12 @@ task ktlint(type: JavaExec, group: "verification") { | |||
description = "Check Kotlin code style." | |||
classpath = configurations.ktlint | |||
main = "com.github.shyiko.ktlint.Main" | |||
args "src/**/*.kt" | |||
args "--androidsrc/**/*.kt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a space after android
Try running this locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. The task keeps running, it never completes
Build is failing |
@iamareebjamal yes it will fail. As far as I know only way of making the build pass is adding those comments for wildcard imports. This is a bug in the library that has still not been solved Do you know any other alternative ? |
OK, will see |
Superseded by #769 |
Fixes #639