Skip to content

Migrate Dangerfile back to Kotlin#483

Open
JordanLongstaff wants to merge 25 commits into
mainfrom
danger-kotlin
Open

Migrate Dangerfile back to Kotlin#483
JordanLongstaff wants to merge 25 commits into
mainfrom
danger-kotlin

Conversation

@JordanLongstaff
Copy link
Copy Markdown
Collaborator

Another attempt to get rid of Ruby in this repo.
Tentative on the release of an Android Lint plugin that actually works with Danger Kotlin, if that ever happens.

@github-actions
Copy link
Copy Markdown
Contributor

No dependency violations found. 👍

Check warning

Code scanning / Android Lint

Monochrome icon is not defined Warning

The application adaptive icon is missing a monochrome tag

Check warning

Code scanning / Android Lint

Monochrome icon is not defined Warning

The application adaptive roundIcon is missing a monochrome tag
@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (IAN/udp)

Total Project Coverage 100.00%

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (IAN/enums)

Total Project Coverage 100.00%

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (IAN/world)

Total Project Coverage 99.43%

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (IAN/vesseldata)

Total Project Coverage 98.73%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 31, 2025

Unit Test Results

  140 files  ±0    140 suites  ±0   21m 13s ⏱️ - 1m 11s
1 362 tests ±0  1 362 ✅ ±0  0 💤 ±0  0 ❌ ±0 
4 001 runs  ±0  4 001 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1eb3c11. ± Comparison against base commit 9456448.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 31, 2025

Konsist Test Results

 12 files  ±0   12 suites  ±0   8s ⏱️ -1s
128 tests ±0  128 ✅ ±0  0 💤 ±0  0 ❌ ±0 
701 runs  ±0  701 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1eb3c11. ± Comparison against base commit 9456448.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 31, 2025

Instrumented Test Results

0 files   -    28  0 suites   - 28   0s ⏱️ - 7h 25m 9s
0 tests  -    39  0 ✅  -    28  0 💤 ±0  0 ❌  - 11 
0 runs   - 1 038  0 ✅  - 1 019  0 💤 ±0  0 ❌  - 19 

Results for commit 1eb3c11. ± Comparison against base commit 9456448.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (app)

Total Project Coverage 13.68%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 31, 2025

Code Coverage (IAN/packets)

File Coverage [100.00%]
IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt 100.00%
Total Project Coverage 99.14%

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage (IAN/util)

Total Project Coverage 100.00%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2025

Code Coverage (IAN/listener)

Total Project Coverage 100.00%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2025

Code Coverage (IAN)

Total Project Coverage 97.75%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2025

Total Code Coverage

File Coverage [100.00%]
IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt 100.00%
Total Project Coverage 89.86%

# Conflicts:
#	.github/workflows/danger.yml
#	Gemfile.lock
@OptIn(ExperimentalTime::class)
@Throws(PacketException::class)
suspend fun readPacket(): ParseResult {
if (false) {}

Check warning

Code scanning / detekt

Empty block of code detected. As they serve no purpose they should be removed. Warning

This empty block of code can be removed.
@JordanLongstaff
Copy link
Copy Markdown
Collaborator Author

JordanLongstaff commented Nov 3, 2025

Warnings
⚠️

IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt#L47 - Detekt: Class 'PacketReader' with '35' functions detected. Defined threshold inside classes is set to '11', rule: detekt.TooManyFunctions

⚠️

IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt#L89 - Detekt: Function readPacket has 3 return statements which exceeds the limit of 2., rule: detekt.ReturnCount

⚠️

IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt#L90 - Detekt: This empty block of code can be removed., rule: detekt.EmptyIfBlock

⚠️

app/src/main/kotlin/artemis/agent/AgentViewModel.kt#L98 - Detekt: Class 'AgentViewModel' with '34' functions detected. Defined threshold inside classes is set to '11', rule: detekt.TooManyFunctions

⚠️

app/src/main/kotlin/artemis/agent/AgentViewModel.kt#L98 - Detekt: Class AgentViewModel is too large. Consider splitting it into smaller pieces., rule: detekt.LargeClass

⚠️

app/src/main/kotlin/artemis/agent/AgentViewModel.kt#L683 - Detekt: The function updateObjects appears to be too complex based on Cognitive Complexity (complexity: 91). Defined complexity threshold for methods is set to '15', rule: detekt.CognitiveComplexMethod

⚠️

app/src/main/kotlin/artemis/agent/AgentViewModel.kt#L683 - Detekt: The function updateObjects appears to be too complex based on Cyclomatic Complexity (complexity: 69). Defined complexity threshold for methods is set to '15', rule: detekt.CyclomaticComplexMethod

⚠️

app/src/main/kotlin/artemis/agent/AgentViewModel.kt#L683 - Detekt: The function updateObjects is too long (228). The maximum length is 60., rule: detekt.LongMethod

⚠️

app/src/main/kotlin/artemis/agent/cpu/RoutingGraph.kt#L291 - Detekt: Function calculateAvoidanceRouteCost has 5 return statements which exceeds the limit of 2., rule: detekt.ReturnCount

⚠️

app/src/main/kotlin/artemis/agent/cpu/RoutingGraph.kt#L291 - Detekt: The function calculateAvoidanceRouteCost appears to be too complex based on Cognitive Complexity (complexity: 85). Defined complexity threshold for methods is set to '15', rule: detekt.CognitiveComplexMethod

⚠️

app/src/main/kotlin/artemis/agent/cpu/RoutingGraph.kt#L291 - Detekt: The function calculateAvoidanceRouteCost appears to be too complex based on Cyclomatic Complexity (complexity: 38). Defined complexity threshold for methods is set to '15', rule: detekt.CyclomaticComplexMethod

⚠️

app/src/main/kotlin/artemis/agent/cpu/RoutingGraph.kt#L291 - Detekt: The function calculateAvoidanceRouteCost is too long (168). The maximum length is 60., rule: detekt.LongMethod

⚠️

app/src/main/kotlin/artemis/agent/cpu/RoutingGraph.kt#L347 - Detekt: The loop contains more than one break or continue statement. The code should be refactored to increase readability., rule: detekt.LoopWithTooManyJumpStatements

Messages
📖
      All modified files:
    .github/workflows/codeql.yml DiffForFile(file=.github/workflows/codeql.yml, additions=[], deletions=[])

.github/workflows/danger.yml DiffForFile(file=.github/workflows/danger.yml, additions=[], deletions=[])
.tool-versions DiffForFile(file=.tool-versions, additions=[], deletions=[])
IAN/packets/detekt-baseline.xml DiffForFile(file=IAN/packets/detekt-baseline.xml, additions=[], deletions=[])
IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt DiffForFile(file=IAN/packets/src/main/kotlin/com/walkertribe/ian/iface/PacketReader.kt, additions=[], deletions=[])
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml DiffForFile(file=app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml, additions=[], deletions=[])
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml DiffForFile(file=app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml, additions=[], deletions=[])
renovate.json DiffForFile(file=renovate.json, additions=[], deletions=[])
Dangerfile.df.kts DiffForFile(file=Dangerfile.df.kts, additions=[], deletions=[])
danger/baselines.df.kts DiffForFile(file=danger/baselines.df.kts, additions=[], deletions=[])
danger/main-no-tests.df.kts DiffForFile(file=danger/main-no-tests.df.kts, additions=[], deletions=[])
danger/max-lines.df.kts DiffForFile(file=danger/max-lines.df.kts, additions=[], deletions=[])
danger/wip.df.kts DiffForFile(file=danger/wip.df.kts, additions=[], deletions=[])

Generated by 🚫 Danger Kotlin against 1eb3c11

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