Skip to content
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

Merged
merged 10 commits into from
Oct 31, 2024
Merged

feat: add spotless config #18

merged 10 commits into from
Oct 31, 2024

Conversation

MustafaHaddara
Copy link
Contributor

@MustafaHaddara MustafaHaddara commented Oct 29, 2024

Which problem is this PR solving?

Adds spotless and its associated config to the project

Short description of the changes

  • add spotless (via their official gradle plugin)
  • add .editorconfig to configure ktlint
  • format our existing code
  • add lint check job to our CI pipelines

How to verify that this has the expected result

  • ensure ./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.

@MustafaHaddara MustafaHaddara changed the title Mh/spotless feat: add spotless config Oct 29, 2024
@MustafaHaddara MustafaHaddara marked this pull request as ready for review October 30, 2024 17:54
@MustafaHaddara MustafaHaddara requested a review from a team as a code owner October 30, 2024 17:54
Copy link
Collaborator

@beekhc beekhc left a 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,
;
Copy link
Collaborator

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,

Copy link
Collaborator

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

@@ -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")
Copy link
Collaborator

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?

@MustafaHaddara MustafaHaddara merged commit 79c0c1c into main Oct 31, 2024
6 checks passed
@MustafaHaddara MustafaHaddara deleted the mh/spotless branch October 31, 2024 19:45
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