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

Deprecation Message: The option skipLexicalErrors is deprecated. Use failOnError instead. #75

Open
vector-jnajjar opened this issue Aug 23, 2024 · 5 comments

Comments

@vector-jnajjar
Copy link

The newest version of CPD (from PMD 7.3.0) deprecated this option.
It is read from in de.aaschmid.gradle.plugins.cpd.CpdExtension#skipLexicalErrors
and written from the taskMapping in com.vector.cfg.build.cfgpmd.cpd.CfgCpdPlugin#setupTaskDefaults

Could you please update this to failOnError.

See https://github.com/pmd/pmd/blob/master/docs/pages/release_notes_old.md#deprecated-api for details.

@aaschmid
Copy link
Owner

aaschmid commented Aug 23, 2024

Thanks. Do you have a clue how the already existing option ignoreFailures from Gradle itself acts in that regard, or can you try it?

Edit: also I am currently not sure if this is also a behavioral change as skip lexical errors has only skipped parsing errors and now all errors are considered ...

@jhonnen
Copy link

jhonnen commented Aug 26, 2024

VerificationTask.ignoreFailures is not a replacement, as this would not fail the build anymore on duplicated code.

@aaschmid
Copy link
Owner

But as far as I understood failOnError does the same with!

@vector-jnajjar
Copy link
Author

vector-jnajjar commented Aug 26, 2024

@aaschmid
Copy link
Owner

Ok, I will try to add this option within the next days (PR also welcome) if I find the time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants