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

Enforce Scala 2 compatible syntax #1677

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

ruippeixotog
Copy link
Member

In past PRs we've been asking contributors to use Scala 2 compatible syntax. On this PR I'm starting to enforce these choices using scalac and scalafix.

Most PureConfig code is cross-compiled against Scala 2.12, 2.13 and 3 and in those we have no choice but to use syntax compatible with all versions. Some Scala3-only code could technically use the new syntax, but this would create a discrepancy in code style that I'd rather avoid as long as we can (i.e. until Scala 3 drops support for some Scala 2 syntax).

@ruippeixotog ruippeixotog requested a review from jcazevedo June 13, 2024 04:17
Copy link
Member

@jcazevedo jcazevedo left a comment

Choose a reason for hiding this comment

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

Thank you for this!

@jcazevedo jcazevedo merged commit eefde98 into master Jun 26, 2024
12 checks passed
@jcazevedo jcazevedo deleted the force-scala2-compat-syntax branch June 26, 2024 22:01
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