-
Notifications
You must be signed in to change notification settings - Fork 376
chore: adding detekt #2376
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
base: main
Are you sure you want to change the base?
chore: adding detekt #2376
Conversation
|
|
||
| } | ||
|
|
||
| subprojects { |
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.
this part will ignore the test files and as it doesnt make sense to run detekt on tests.
| ignoreAnnotated: ["Inject"] | ||
|
|
||
| UnsafeCallOnNullableType: | ||
| active: true |
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.
this will help us with catching usage of !!
| ignoreNamedArgument: true | ||
|
|
||
| MaxLineLength: | ||
| active: false |
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.
disabled it here as spotless is able to do the same check
Description
One Line Summary
Integrating detekt into the project
Details
Motivation
Adding Detekt improves code quality and consistency by automatically detecting potential issues and enforcing style guidelines in Kotlin projects.
I will be creating a follow up PR that will basically add detekt as a step in the github action.
Scope
Mostly used for internal purposes. Each module has its own baseline. And all modules share a common detekt config.
As we continue working on this codebase, we will use these rules to block the PR.
Testing
Unit testing
No impact
Manual testing
Tested
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is