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

Add support for Kotlin #67

Closed
nedtwigg opened this issue Jan 10, 2017 · 3 comments
Closed

Add support for Kotlin #67

nedtwigg opened this issue Jan 10, 2017 · 3 comments

Comments

@nedtwigg
Copy link
Member

With Kotlin build scripts coming, it would be great for Spotless to add support for kotlin. shyiko/ktlint seems to be the main entry in this space.

Added a first cut in feature/kotlin, but it's pretty difficult to integrate via reflection at the moment because some of the args are hard to instantiate (code). Should be easy to fix with a small change on the library side, I'll contact the author there.

@nedtwigg
Copy link
Member Author

Initial support for ktlint is now available in 3.1.0-SNAPSHOT.

@nedtwigg
Copy link
Member Author

Tested on some random projects, but wildcard imports seem to be a common pattern, which ktlint doesn't allow. Gonna see if there's an easy way to ignore this particular rule.

pinterest/ktlint#21

@nedtwigg
Copy link
Member Author

Released in 3.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant