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

Integrate detekt for Kotlin code quality/style #8505

Merged
merged 2 commits into from Oct 7, 2023

Conversation

utzcoz
Copy link
Member

@utzcoz utzcoz commented Oct 7, 2023

1. Integrate the latest detekt with Gradle plugin.
2. Fix detekt warnings for utils and mockk modules.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Signed-off-by: utzcoz <utzcoz@outlook.com>
@utzcoz
Copy link
Member Author

utzcoz commented Oct 7, 2023

@hoisie Does the internal codebase have similar Kotlin static analysis tools for Robolectric? This PR just integrates detekt, the most famous tool for Kotlin, and it catches some bad taste code like using too generic exception like RuntimeException.

@utzcoz utzcoz merged commit 9f09a6d into robolectric:master Oct 7, 2023
17 of 18 checks passed
@utzcoz utzcoz deleted the integrate-detekt branch October 7, 2023 12:09
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.

Experiment detekt for Robolectric's Kotlin code
1 participant