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

Enable additional typelevel-scalafix rules #802

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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