Skip to content

Commit

Permalink
Merge pull request #802 from iRevive/scalafix-rules
Browse files Browse the repository at this point in the history
Enable additional typelevel-scalafix rules
  • Loading branch information
iRevive authored Oct 11, 2024
2 parents 2543ee2 + 2924dcb commit 4e699ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ rules = [
RedundantSyntax
TypelevelUnusedIO
TypelevelMapSequence
TypelevelAs
TypelevelUnusedShowInterpolator
TypelevelFs2SyncCompiler
TypelevelHttp4sLiteralsSyntax
]

OrganizeImports {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ object SpanContext {

implicit val spanContextShow: Show[SpanContext] =
Show.show { ctx =>
show"SpanContext{" +
"SpanContext{" +
show"traceId=${ctx.traceIdHex}, " +
show"spanId=${ctx.spanIdHex}, " +
show"traceFlags=${ctx.traceFlags}, " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class SpanContextSuite extends DisciplineSuite {

test("Show[SpanContext]") {
Prop.forAll(Gens.spanContext) { ctx =>
val expected = show"SpanContext{" +
val expected = "SpanContext{" +
show"traceId=${ctx.traceIdHex}, " +
show"spanId=${ctx.spanIdHex}, " +
show"traceFlags=${ctx.traceFlags}, " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ object SpanData {
val endTimestamp =
data.endTimestamp.foldMap(ts => show"endTimestamp=$ts, ")

show"SpanData{" +
"SpanData{" +
show"name=${data.name}, " +
show"spanContext=${data.spanContext}, " +
show"parentSpanContext=${data.parentSpanContext}, " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SpanDataSuite extends DisciplineSuite {
val endedEpoch = data.endTimestamp.foldMap(ts => show"endTimestamp=$ts, ")

val expected =
show"SpanData{" +
"SpanData{" +
show"name=${data.name}, " +
show"spanContext=${data.spanContext}, " +
show"parentSpanContext=${data.parentSpanContext}, " +
Expand Down

0 comments on commit 4e699ae

Please sign in to comment.