-
Notifications
You must be signed in to change notification settings - Fork 772
refactor: Configure & Fix Detekt Issues for KMP #2765
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
Conversation
|
As part of the Detekt fixes and refactoring, I made the following improvements: Introduced MifosTextFieldConfig, but since it will be used across multiple modules, it would be better to move it to the model module for better maintainability and reusability. |
|
@HekmatullahAmin can you rebase your PR |
- **Refactored `MifosOutlinedTextField`**: - Introduced `MifosTextFieldConfig` to **reduce parameters** and improve readability. - **Reorganized Composable Functions**: - Fixed **property order** in `@Composable` functions for better clarity. - **Commented out unused properties & methods** to reduce clutter. - **Split large functions into smaller, reusable chunks**. - **Reduced Return Count**: - Ensured functions return at most **two values** to enhance maintainability. - **Updated Detekt Configuration for KMP**: - **Excluded platform-specific files** (`.jvm.kt`, `.desktop.kt`, `.wasmJs.kt`, `.native.kt`, `.js.kt`, `.android.kt`) from `MatchingDeclarationName`.
ea4fc70 to
bf7d22d
Compare
sure, it is done |
MifosOutlinedTextField:MifosTextFieldConfigto reduce parameters and improve readability.@Composablefunctions for better clarity..jvm.kt,.desktop.kt,.wasmJs.kt,.native.kt,.js.kt,.android.kt) fromMatchingDeclarationName.Fixes - Jira-#131
Didn't create a Jira ticket, click here to create new.
Please Add Screenshots If there are any UI changes.
Please make sure these boxes are checked before submitting your pull request - thanks!
Run the static analysis check
./gradlew checkorci-prepush.shto make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.