-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add spotless config #18
Conversation
6846779
to
7251da5
Compare
a13d88b
to
87337e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great!
@@ -56,7 +56,8 @@ private const val OTEL_EXPORTER_OTLP_LOGS_PROTOCOL_KEY = "OTEL_EXPORTER_OTLP_LOG | |||
enum class OtlpProtocol { | |||
GRPC, | |||
HTTP_PROTOBUF, | |||
HTTP_JSON; | |||
HTTP_JSON, | |||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, that's a weird one. fine, but weird
@@ -159,21 +159,17 @@ data class HoneycombOptions( | |||
val logsEndpoint: String, | |||
val sampleRate: Int, | |||
val debug: Boolean, | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, it's mildly annoying that it removed the grouping. but not worth fighting the linter over
example/build.gradle.kts
Outdated
@@ -1,7 +1,8 @@ | |||
plugins { | |||
alias(libs.plugins.android.application) | |||
alias(libs.plugins.jetbrains.kotlin.android) | |||
id("net.bytebuddy.byte-buddy-gradle-plugin") version("1.15.5") | |||
id("net.bytebuddy.byte-buddy-gradle-plugin") version ("1.15.5") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move this into libs.versions.toml?
15ab2db
to
44d2e43
Compare
Which problem is this PR solving?
Adds
spotless
and its associated config to the projectShort description of the changes
.editorconfig
to configure ktlintHow to verify that this has the expected result
./gradlew spotlessCheck
gets run in CI. To demonstrate: this commit adds a lint error, and fails the lint step. The next commit fixes the lint error and passes the lint step.