Skip to content

Setup detekt

Setup detekt #42

GitHub Actions / detekt failed May 26, 2024 in 0s

reviewdog [detekt] report

reported by reviewdog 🐶

Findings (5)

build.gradle.kts|15 col 14| Trailing space(s)
build.gradle.kts|66 col 1| Unexpected blank line(s) before "}"
build.gradle.kts|1 col 1| File must end with a newline (\n)
core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt|25 col 9| Variable names should match the pattern: [a-z][A-Za-z0-9]*
core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt|25 col 51| This expression contains a magic number. Consider defining it to a well named constant.

Filtered Findings (39)

build.gradle.kts|77 col 2| The file /github/workspace/build.gradle.kts is not ending with a new line.
build.gradle.kts|39 col 28| This expression contains a magic number. Consider defining it to a well named constant.
build-logic/convention/build.gradle.kts|1 col 1| File must end with a newline (\n)
build-logic/convention/build.gradle.kts|51 col 2| The file /github/workspace/build-logic/convention/build.gradle.kts is not ending with a new line.
build-logic/settings.gradle.kts|1 col 1| File must end with a newline (\n)
build-logic/settings.gradle.kts|15 col 23| The file /github/workspace/build-logic/settings.gradle.kts is not ending with a new line.
modules/contact/build.gradle.kts|1 col 1| File must end with a newline (\n)
modules/contact/build.gradle.kts|13 col 2| The file /github/workspace/modules/contact/build.gradle.kts is not ending with a new line.
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/TestActivity.kt|1 col 1| File must end with a newline (\n)
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/TestActivity.kt|5 col 41| The file /github/workspace/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/TestActivity.kt is not ending with a new line.
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt|94 col 1| Exceeded max line length (140)
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt|1 col 1| File must end with a newline (\n)
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt|37 col 1| Needless blank line(s)
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt|104 col 2| The file /github/workspace/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt is not ending with a new line.
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactScreenTest.kt|94 col 1| Line detected, which is longer than the defined maximum line length in the code style.
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt|1 col 1| File must end with a newline (\n)
modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt|21 col 2| The file /github/workspace/modules/contact/src/androidTest/kotlin/edu/stanford/spezi/modules/contact/ContactFactory.kt is not ending with a new line.
modules/onboarding/build.gradle.kts|1 col 1| File must end with a newline (\n)
modules/onboarding/build.gradle.kts|8 col 2| The file /github/workspace/modules/onboarding/build.gradle.kts is not ending with a new line.
app/build.gradle.kts|1 col 1| File must end with a newline (\n)
app/build.gradle.kts|39 col 2| The file /github/workspace/app/build.gradle.kts is not ending with a new line.
app/src/androidTest/kotlin/edu/stanford/spezi/app/ExampleInstrumentedTest.kt|1 col 1| File must end with a newline (\n)
app/src/androidTest/kotlin/edu/stanford/spezi/app/ExampleInstrumentedTest.kt|22 col 2| The file /github/workspace/app/src/androidTest/kotlin/edu/stanford/spezi/app/ExampleInstrumentedTest.kt is not ending with a new line.
core/logging/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/logging/build.gradle.kts|14 col 2| The file /github/workspace/core/logging/build.gradle.kts is not ending with a new line.
core/testing/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/testing/build.gradle.kts|14 col 2| The file /github/workspace/core/testing/build.gradle.kts is not ending with a new line.
core/utils/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/utils/build.gradle.kts|13 col 2| The file /github/workspace/core/utils/build.gradle.kts is not ending with a new line.
core/design/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/design/build.gradle.kts|28 col 2| The file /github/workspace/core/design/build.gradle.kts is not ending with a new line.
core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/SpeziButtonKtTest.kt|1 col 1| File must end with a newline (\n)
core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/SpeziButtonKtTest.kt|87 col 2| The file /github/workspace/core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/SpeziButtonKtTest.kt is not ending with a new line.
core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/ExampleInstrumentedTest.kt|1 col 1| File must end with a newline (\n)
core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/ExampleInstrumentedTest.kt|22 col 2| The file /github/workspace/core/design/src/androidTest/kotlin/edu/stanford/spezi/core/design/ExampleInstrumentedTest.kt is not ending with a new line.
core/coroutines/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/coroutines/build.gradle.kts|12 col 2| The file /github/workspace/core/coroutines/build.gradle.kts is not ending with a new line.
core/bluetooth/build.gradle.kts|1 col 1| File must end with a newline (\n)
core/bluetooth/build.gradle.kts|13 col 2| The file /github/workspace/core/bluetooth/build.gradle.kts is not ending with a new line.

Annotations

Check warning on line 15 in build.gradle.kts

See this annotation in the file changed.

@github-actions github-actions / detekt

[detekt] build.gradle.kts#L15 <detekt.NoTrailingSpaces>

Trailing space(s)
Raw output
/github/workspace/build.gradle.kts:15:14: warning: Trailing space(s) (detekt.NoTrailingSpaces)

Check warning on line 66 in build.gradle.kts

See this annotation in the file changed.

@github-actions github-actions / detekt

[detekt] build.gradle.kts#L66 <detekt.NoBlankLineBeforeRbrace>

Unexpected blank line(s) before "}"
Raw output
/github/workspace/build.gradle.kts:66:1: warning: Unexpected blank line(s) before "}" (detekt.NoBlankLineBeforeRbrace)

Check warning on line 1 in build.gradle.kts

See this annotation in the file changed.

@github-actions github-actions / detekt

[detekt] build.gradle.kts#L1 <detekt.FinalNewline>

File must end with a newline (\n)
Raw output
/github/workspace/build.gradle.kts:1:1: warning: File must end with a newline (\n) (detekt.FinalNewline)

Check warning on line 25 in core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt

See this annotation in the file changed.

@github-actions github-actions / detekt

[detekt] core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt#L25 <detekt.VariableNaming>

Variable names should match the pattern: [a-z][A-Za-z0-9]*
Raw output
/github/workspace/core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt:25:9: warning: Variable names should match the pattern: [a-z][A-Za-z0-9]* (detekt.VariableNaming)

Check warning on line 25 in core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt

See this annotation in the file changed.

@github-actions github-actions / detekt

[detekt] core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt#L25 <detekt.MagicNumber>

This expression contains a magic number. Consider defining it to a well named constant.
Raw output
/github/workspace/core/coroutines/src/main/kotlin/edu/stanford/spezi/core/coroutines/di/CoroutinesModule.kt:25:51: warning: This expression contains a magic number. Consider defining it to a well named constant. (detekt.MagicNumber)