peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.02k stars 178 forks source link

`--report-exclude` is ignored when it contains a list #713

Closed Cykelero closed 2 months ago

Cykelero commented 5 months ago

When --report-exclude contains a pipe-separated list, it has no effect; no item from the list is taken into account.

For example, this properly excludes FileA: --report-exclude 'FileA.swift'

But this excludes neither FileA, or FileB: --report-exclude 'FileA.swift|FileB.swift'

Of note, this was still working as expected as of version 2.17.1.

ileitch commented 2 months ago

2.18.0 updated the argument format to match swift-argument-parser. This was explained in the release notes: https://github.com/peripheryapp/periphery/blob/master/CHANGELOG.md#2180-2024-01-21.