Skip to content

Conversation

@Elelan
Copy link

@Elelan Elelan commented Dec 4, 2025

…status handling

@Elelan Elelan marked this pull request as ready for review December 4, 2025 13:58
@Elelan Elelan merged commit e7fa057 into stage/dweb-next-merge Dec 4, 2025
1 check passed
onMyGroups = onMyGroups,
onServerToggle = { enabled ->
if (enabled) {
requireContext().startForegroundService(Intent(requireContext(), SnowbirdService::class.java))

Check warning

Code scanning / detekt

Reports lines with exceeded length Warning

Exceeded max line length (120)
onMyGroups = onMyGroups,
onServerToggle = { enabled ->
if (enabled) {
requireContext().startForegroundService(Intent(requireContext(), SnowbirdService::class.java))

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Argument should be on a separate line (unless all arguments can fit a single line)
onMyGroups = onMyGroups,
onServerToggle = { enabled ->
if (enabled) {
requireContext().startForegroundService(Intent(requireContext(), SnowbirdService::class.java))

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Argument should be on a separate line (unless all arguments can fit a single line)
onMyGroups = onMyGroups,
onServerToggle = { enabled ->
if (enabled) {
requireContext().startForegroundService(Intent(requireContext(), SnowbirdService::class.java))

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Argument should be on a separate line (unless all arguments can fit a single line)
onMyGroups = onMyGroups,
onServerToggle = { enabled ->
if (enabled) {
requireContext().startForegroundService(Intent(requireContext(), SnowbirdService::class.java))

Check warning

Code scanning / detekt

Reports incorrect argument list wrapping Warning

Missing newline before ")"
}

@Composable
fun DwebServerPreference(

Check warning

Code scanning / detekt

Function names should follow the naming convention set in the configuration. Warning

Function names should match the pattern: [a-z][a-zA-Z0-9]*

@Preview
@Composable
private fun DwebServerPreferencePreview() {

Check warning

Code scanning / detekt

Function names should follow the naming convention set in the configuration. Warning

Function names should match the pattern: [a-z][a-zA-Z0-9]*

@Preview
@Composable
private fun DwebServerPreferencePreview() {

Check warning

Code scanning / detekt

Private function is unused and should be removed. Warning

Private function DwebServerPreferencePreview is unused.
}

// Give it a moment to clean up
delay(500)

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.

updateStatus(ServiceStatus.Stopped)
Timber.d("Server shutdown complete")
} catch (e: Exception) {

Check warning

Code scanning / detekt

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

The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
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.

2 participants