Skip to content

Make JSON output always report absolute paths, deprecate real path reporting - #70

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-realpath-reporting
Sep 5, 2026
Merged

Make JSON output always report absolute paths, deprecate real path reporting#70
TomasVotruba merged 1 commit into
mainfrom
deprecate-realpath-reporting

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Absolute file paths in the report are only useful when the output is consumed by a machine (IDE links, CI code-quality ingestion). That is exactly what the JSON formatter is for, so it now always reports absolute paths - no toggle needed.

What changed

  • JsonOutputFormatter always reports absolute paths.
  • The other formatters (console, GitLab, Checkstyle, JUnit) report relative paths, as before.
  • withRealPathReporting() and ECSConfig::reportingRealPath() are kept as deprecation warnings pointing users to --output-format json.
  • Removed the reporting-realpath plumbing: Option::REPORTING_REALPATH, Configuration::$reportingWithRealPath + isReportingWithRealPath(), and the ConfigurationFactory wiring.
  • Dropped the ->withRealPathReporting(false) call from the default config/config.php.

Note

There was no --reporting-realpath CLI flag; the option was only reachable through the config method, now deprecated.

phpstan, rector, check-cs and the full test suite pass.

https://claude.ai/code/session_01A8hvNrf4ZxWkiEjWxecSAa

…porting

Absolute paths are only useful for machine-consumed output, so the JSON
formatter now always reports them. The other formatters stay relative.

withRealPathReporting() and ECSConfig::reportingRealPath() are kept as
deprecation warnings pointing to the JSON output format; the underlying
reporting-realpath option and its plumbing are removed.

Claude-Session: https://claude.ai/code/session_01A8hvNrf4ZxWkiEjWxecSAa
@TomasVotruba
TomasVotruba merged commit 0666ceb into main Sep 5, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-realpath-reporting branch September 5, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant