-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments
Thanks. Do you have a clue how the already existing option 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 ... |
|
But as far as I understood |
Hi Andreas, https://docs.pmd-code.org/apidocs/pmd-core/7.3.0/net/sourceforge/pmd/cpd/CPDConfiguration.html#setSkipLexicalErrors(boolean) states that the new flag also configures whether lexical errors should fail the build or not. I feel like there is a difference between fail-on-error and fail-on-violation. |
Ok, I will try to add this option within the next days (PR also welcome) if I find the time... |
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.
The text was updated successfully, but these errors were encountered: