Repository navigation
v1.1.1 — Exclude Pattern Fix #10
ericodx
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug fix for the
excludekey in.swift-cpd.yml.What's new
Bug Fix
excludepatterns in.swift-cpd.ymland--excludehaving no effect when using relative paths or directory paths with a trailing slashGlobMatcheranchored all patterns with^, making them impossible to match against absolute file paths. Directory patterns ending with/also failed to matchurl.path, which never includes a trailing slash/now correctly exclude the directory and all files within it, enabling early pruning viaskipDescendants()Documentation
GlobMatchermatching semantics documented — absolute vs. relative patterns, directory trailing-slash behaviorshouldExcludeis evaluated for every enumerated item, including directoriesexcludeYAML reference updated with clarifying comments and a directory-pattern exampleRequirements
Installation
See the Installation Guide for Homebrew, pre-built binary, SPM plugin, and git hook setup.
What's Changed
Full Changelog: v1.1.0...v1.1.1
This discussion was created from the release v1.1.1 — Exclude Pattern Fix .
All reactions