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

Improve code style: Replace wildcard imports with explicit imports #5019

Open
soleil-colza opened this issue Jun 24, 2024 · 0 comments · May be fixed by #5018
Open

Improve code style: Replace wildcard imports with explicit imports #5019

soleil-colza opened this issue Jun 24, 2024 · 0 comments · May be fixed by #5018

Comments

@soleil-colza
Copy link

soleil-colza commented Jun 24, 2024

Description

Currently, the codebase contains several wildcard imports (e.g., import androidx.compose.foundation.layout.*). While functional, these imports can negatively impact code readability and maintainability, especially as the project grows and more libraries are introduced.

Proposed solution

Refactor the code to replace all wildcard imports with explicit imports, specifying the exact classes being used.

Benefits

  • Enhanced readability: Explicit imports make it clear which classes are being used from each package, improving code understanding.
  • Reduced risk of conflicts: Explicit imports help prevent potential naming conflicts that could arise when adding new libraries with similar class names.
  • Improved maintainability: By clearly defining dependencies, it becomes easier to manage and update the codebase in the future.
    You can also link this issue to the corresponding pull request in the description for easy reference.

I am currently working on this issue on this pull request.

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