Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Goooler
Copy link
Contributor

@Goooler Goooler commented Jan 29, 2022

  • Remove redundant SAM.
  • Proper accessors in kotlin.
  • Remove unneeded generic type.
  • Inline local variable.
  • Const values.
  • Sort in kotlin.
  • Until in kotlin.

Copy link
Member

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good πŸ‘ Just a minor nit

}

fun javaExit() {
@Suppress("ReplaceJavaStaticMethodWithKotlinAnalog")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Why this? Was it triggering a warning of any form? If so where?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I see a suggestion by IDEA to replace System.exit(1) with exitProcess(1), it's not proper right here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not proper right here?

I think it's ok. This is a test resource, so we're not actually executing it and should be treated as plain-text. However, as the IDE is recognizing that is Kotlin code, it's probably ok to have it.

@cortinico cortinico added the housekeeping Marker for housekeeping tasks and refactorings label Jan 30, 2022
@cortinico cortinico added this to the 1.20.0 milestone Jan 30, 2022
@cortinico cortinico merged commit 10e9e4c into detekt:main Jan 30, 2022
@Goooler Goooler deleted the clean branch January 30, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

housekeeping Marker for housekeeping tasks and refactorings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants