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

Fix some warnings related to -xsource:3 #890

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morgen-peschke
Copy link
Contributor

Fixes #889

@morgen-peschke morgen-peschke requested review from danicheg, samspills and a team February 13, 2025 19:01
Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I admit I've lost all track of what syntax is in and out of fashion anymore. The build passes and I'm not offended by anything, so, ✅


object MyThing {
// Impure But What 90% of Folks I know do with log4s
implicit def unsafeLogger[F[_]: Sync] = Slf4jLogger.getLogger[F]
implicit def unsafeLogger[F[_] : Sync] = Slf4jLogger.getLogger[F]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a warning on these spaces? This is the thing that seems strangest to me.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default spaces.beforeContextBoundColon is Never and it doesn't seem configured so it's a bit weird these have been added

@@ -41,33 +41,33 @@ Good news, you don't have to! Enter log4cats! Read on!
import org.typelevel.log4cats.Logger
import org.typelevel.log4cats.slf4j.Slf4jLogger
import cats.effect.Sync
import cats.implicits._
import cats.implicits.*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these all be changed to cats.syntax.all.*? It's mentioned in these release notes that the latter is preferred
https://github.com/typelevel/cats/releases/tag/v2.2.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm indifferent to whether it happens in this PR, but 👍 in general.

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.

Fix style inconsistencies
3 participants