Skip to content

Commit 320e7d3

Browse files
beyondwinclaude
andcommitted
style(mcp): wrap staleMarkerSuffix to satisfy MaxLineLength
Line 18 was 131 chars after the staleMarkerSuffix extraction (8490db7), tripping detekt's 120-char rule. Gradle's local detekt cache hit hid the issue until CI saw a cold cache. Split the expression across two lines so the rule passes without a baseline exemption. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7825139 commit 320e7d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fixthis-mcp/src/main/kotlin/io/github/beyondwin/fixthis/mcp/session/FormatterExtensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ internal fun SourceCandidate.fileWithLineAndOwner(): String {
1515
return "${fileWithLine()}$ownerSegment"
1616
}
1717

18-
internal fun SourceCandidate.staleMarkerSuffix(): String = if (stale == true) " ⚠ stale: ${staleReason ?: "unspecified"}" else ""
18+
internal fun SourceCandidate.staleMarkerSuffix(): String =
19+
if (stale == true) " ⚠ stale: ${staleReason ?: "unspecified"}" else ""
1920

2021
internal fun FixThisRect.formatBounds(): String = "$left,$top,$right,$bottom"
2122

0 commit comments

Comments
 (0)