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

Investigate use of code linting #31

Closed
ssoper opened this issue Sep 13, 2021 · 1 comment · Fixed by #35
Closed

Investigate use of code linting #31

ssoper opened this issue Sep 13, 2021 · 1 comment · Fixed by #35

Comments

@ssoper
Copy link
Owner

ssoper commented Sep 13, 2021

https://github.com/jeremymailen/kotlinter-gradle

@ssoper
Copy link
Owner Author

ssoper commented Sep 14, 2021

Added the kotlinter dependency in my gradle file.

plugins {
    id("org.jmailen.kotlinter") version "3.6.0"
}

I received the error NoSuchMethodError when attempting to run ./gradlew --lintKotlin. Turns out you need to be running gradle 6.8+ which comes with Kotlin 1.4 (Kotlin 1.3 is deprecated for the latest version of ktlint). So I upgraded gradle with ./gradlew wrapper --gradle-version 7.0. This resolved my kotlinter issues.

Also, you’ll want to update your IntelliJ settings such that wildcard imports are no longer used.

@ssoper ssoper mentioned this issue Sep 14, 2021
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 a pull request may close this issue.

1 participant