- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
ID: kotlin-code-style/max-line-len
Language: Kotlin
Severity: Notice
Category: Code Style
This rule ensures that no line in your Kotlin code exceeds a certain maximum length, set to 140 characters by default. Exceeding this limit can lead to code that is difficult to read and understand, especially when working with complex codebases or reviewing code changes. It can also cause issues with version control systems that have difficulty handling long lines.
The rule take the argument max-line-length
to adapt its behavior with your coding style and guidelines.
val fooooooooooooooo = "fooooooooooooooooooooo"
val foo = "foo" + "ooooooooooooooooooooooooooo"
val foooooooooooooo = "foooooooooooooooooooo" // some comment
val bad = "fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
val foooooooooooooo = "foooooooooooooooooooo" // some comment
foo(bar, baz, bli, blo, foooooooooooooooooooo, foooooooooooooooooooo2, foooooooooooooooooooo3, foooooooooooooooooooo43)
package com.datadog.client.model.ucap
import com.datadog.intellij.toolkit.serialization.InstantISO8601Serializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.time.Instant
@Serializable
@JvmInline
value class ActionId(val value: String)
@Serializable
class Action(val id: ActionId, val attributes: ActionAttributes)
@Serializable
data class ActionAttributes(
val name: String,
val description: String?,
val detail: String?,
@Serializable(with = InstantISO8601Serializer::class) val timestamp: Instant,
@SerialName("annotation_id") val annotationId: AnnotationId,
@SerialName("action_key") val actionKey: String,
val status: Status,
val recomputable: Boolean,
val recommendation: String?,
val modification: Modification?,
) {
enum class Status {
GENERATING,
READY,
FAILED
}
@Serializable
data class Modification(
@SerialName("repository_url") val repositoryUrl: String,
@SerialName("commit_sha") val commitSha: String,
val patch: String
)
}
val fooooooooooooooo = "fooooooooooooooooooooo"
val foo = "foo" + "ooooooooooooooooooooooooooo"
val foooooooooooooo = "foooooooooooooooooooo" // some comment
foo(bar)