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

Don't use KoinJavaComponent in Kotlin files #2102

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

nielsvanvelzen
Copy link
Member

Changes

  • Don't use KoinJavaComponent in Kotlin files

Issues

@nielsvanvelzen nielsvanvelzen added the refactor Improvements to code realiability, readability and quality label Sep 26, 2022
@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Sep 26, 2022
import timber.log.Timber
import kotlin.math.roundToInt

/**
* A collection of utility methods, all static.
*/
object Utils {
object Utils : KoinComponent {

Check warning

Code scanning / detekt

Too many functions inside a/an file/class/object/interface always indicate a violation of the single responsibility principle. Maybe the file/class/object/interface wants to manage too many things at once. Extract functionality which clearly belongs together.

Object 'Utils' with '15' functions detected. Defined threshold inside objects is set to '11'
@nielsvanvelzen nielsvanvelzen merged commit 59e47b2 into jellyfin:master Sep 26, 2022
@nielsvanvelzen nielsvanvelzen deleted the koincomponent branch September 30, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code realiability, readability and quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants