A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/5091 below:

[core] PMD CPD v7.3.0 gives deprecation warning for skipLexicalErrors even when not used · Issue #5091 · pmd/pmd · GitHub

Affects PMD Version:

7.3.0

Description:

PMD CPD v7.3.0 gives a deprecation warning for skipLexicalErrors whether or not even when the CLI argument --skip-lexical-errors is used.

Code Sample demonstrating the issue:

# pmd --version
  ████                            ████
  ██                                ██
  ██  █████ █ ███    ███  ███████   ██
 ███  ██  ███ ████  ████  ██    ██  ███
 ███  ███████ ██ ████ ██  ██    ██  ███
  ██  ██      ██  ██  ██  ███████   ██
  ██                                ██
  ████                            ████
PMD 7.3.0 (c5dbc29bea2769016dfb9949dd3a20f242b828f8, 2024-06-28T08:42:40Z)
Java version: 21.0.3, vendor: Eclipse Adoptium, runtime: /opt/java/openjdk
# pmd cpd --dir=. --minimum-tokens=100 --skip-lexical-errors=true
[WARN] --skip-lexical-errors is deprecated. Use --no-fail-on-error instead.
[WARN] The option skipLexicalErrors is deprecated. Use failOnError instead.
# pmd cpd --dir=. --minimum-tokens=100
[WARN] The option skipLexicalErrors is deprecated. Use failOnError instead.

Steps to reproduce:

Please provide detailed steps for how we can reproduce the bug.

  1. run pmd cpd as shown above

Running PMD through: CLI


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4