A RetroSearch Logo

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

Search Query:

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

[cli] Filenames printed as absolute paths in the report despite parameter `--short-names` · Issue #4026 · pmd/pmd · GitHub

Affects PMD Version:

PMD 6.47.0

Description:

The PMD CLI option --short-names is expected to print shortned filenames, however the filenames are printed in absolute format.
This feature was working fine 6.46.0

Exception Stacktrace:

AVERTISSEMENT: This analysis could be faster, please consider using Incremental Analysis: https://pmd.github.io/pmd-6.47.0/pmd_userdocs_incremental_analysis.html

Code Sample demonstrating the issue:

pmd --rulesets ruleset.xml --file-list diff.txt --format xml --report-file pmd-report.xml --short-names

Steps to reproduce:

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

  1. Install pmd version 6.47.0 (latest)
  2. Create a diff.txt file with list of files to be scanned
  3. Create a ruleset file
  4. Run analysis using the following command:
    pmd --rulesets ruleset.xml --file-list diff.txt --format xml --report-file pmd-report.xml --short-names
  5. Filenames in the pmd-report.xml are printed as absolute paths

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