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

Add solution for #27 #72

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Add solution for #27 #72

merged 1 commit into from
Jan 15, 2020

Conversation

REDNBLACK
Copy link
Contributor

@REDNBLACK REDNBLACK commented Jan 1, 2020

We should never validate macros-generated code.
For example WartRemover with tethys macros complains about Any, Var and null, in other cases i've seen asInstanceOf and isInstanceOf casts inside of macro. And there always will be ImplicitParameter and ImplicitConversion warnings, because WartRemover decided so.

For this reason i have decided to disable ALL Scalafix, WartRemover and Scapegoat checks on generated implicit definitions with the following @SupressWarnings values:
org.wartremover.warts.All - disables all WartRemover warnings
scalafix:all - disables all Scalafix warnings
all - disables all Scapegoat warnings

@REDNBLACK REDNBLACK added bug Something isn't working enhancement New feature or request labels Jan 1, 2020
@REDNBLACK REDNBLACK requested a review from Odomontois January 1, 2020 16:31
@REDNBLACK REDNBLACK force-pushed the suppress_linters_warning branch from 50a38fe to 85d7320 Compare January 1, 2020 16:51
@REDNBLACK REDNBLACK merged commit 8e9eb0b into master Jan 15, 2020
@Odomontois Odomontois deleted the suppress_linters_warning branch February 17, 2021 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants