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

style: format code with Ktlint #7

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

deepsource-autofix[bot]
Copy link
Contributor

This commit fixes the style issues introduced in d16b0dc according to the output
from Ktlint.

Details: None

This commit fixes the style issues introduced in d16b0dc according to the output
from Ktlint.

Details: None
@@ -127,7 +126,7 @@
val controlPick = Trigger { lastControl !== controlChooserLogger.get() }
controlPick.onTrue(Commands.runOnce({ newControlStyle() }))

val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) {0.65} }
val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) { 0.65 } }

Check warning

Code scanning / detekt

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled. Warning

Caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
@@ -127,7 +126,7 @@
val controlPick = Trigger { lastControl !== controlChooserLogger.get() }
controlPick.onTrue(Commands.runOnce({ newControlStyle() }))

val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) {0.65} }
val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) { 0.65 } }

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
Copy link
Contributor

deepsource-io bot commented Oct 25, 2024

Here's the code health analysis summary for commits d16b0dc..366702f. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Kotlin LogoKotlin✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@TheGamer1002 TheGamer1002 merged commit 3c95507 into main Oct 25, 2024
7 checks passed
@github-actions github-actions bot deleted the deepsource-transform-dae2173f branch November 2, 2024 13:13
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 this pull request may close these issues.

1 participant