Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

--exclude is not working properly and not documented #84

@vemod

Description

@vemod

consider src/tests, src/something/deeper/tests

phpcpd --exclude tests src/

will exclude not only src/tests but all occurrences of tests, means src/something/deeper/tests also will be excluded.

Spent already an hour trying to figure out how to exclude src/tests, but not src/something/deeper/tests/

I tried absalute path, relative path, path patterns, with quotes, without quotes etc.. none of the ways lets me do that.

phpcpd 1.4.3 by Sebastian Bergmann.

Usage: phpcpd [switches] <directory|file> ...
...
  --exclude <dir>          Exclude <dir> from code analysis.

Sad that Sebastian Bergmann has so poorly documented this tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions