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 majority of compilation warnings #288

Merged
merged 9 commits into from
Mar 17, 2023
Merged

Conversation

krzemin
Copy link
Member

@krzemin krzemin commented Mar 17, 2023

This PR fixes (or silences globally) majority of the compilation warnings and brings back -Xfatal-warnings for Scala 2.13.

For 2.12 it seems that semantics of @unused annotation is a bit different for tests asserting compilation errors.

It also fixes two classes of unused warnings in macro-generated code:

  • one related to implicit TransformerConfiguration, when it's defined
  • one related to sealed classes (coproducts) pattern match variables

@krzemin krzemin added this to the 0.7.2 milestone Mar 17, 2023
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (b5a4e21) 98.34% compared to head (5f04958) 98.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #288   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          39       39           
  Lines        1147     1147           
  Branches      137      137           
=======================================
  Hits         1128     1128           
  Misses         19       19           
Impacted Files Coverage Δ
...a/io/scalaland/chimney/internal/macros/Model.scala 100.00% <ø> (ø)
...nd/chimney/internal/macros/TransformerMacros.scala 98.27% <ø> (ø)
...chimney/cats/CatsPartialTransformerImplicits.scala 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@krzemin krzemin merged commit e557f9f into master Mar 17, 2023
@krzemin krzemin deleted the fix/compilation-warnings branch March 17, 2023 18:54
krzemin added a commit that referenced this pull request Mar 17, 2023
- cleanup majority of the compilation warnings
- cleanup unused warnings from macro-generated code (Scala 2 only)
krzemin added a commit that referenced this pull request Mar 17, 2023
- cleanup majority of the compilation warnings
- cleanup unused warnings from macro-generated code (Scala 2 only)
krzemin added a commit that referenced this pull request Apr 19, 2023
- cleanup majority of the compilation warnings
- cleanup unused warnings from macro-generated code (Scala 2 only)
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