KogenCredo.CoreSupport.Paths (KogenCredo v0.1.0)
View SourceFilename scoping helpers shared by the KogenCredo checks.
Paths are matched on segment boundaries, so "lib/app" matches
lib/app.ex and lib/app/x.ex but not lib/app_web/x.ex. A prefix also
matches below a leading directory (apps/web/lib/x.ex matches "lib/"),
so umbrella projects need no extra configuration.
Summary
Functions
True when filename lies at or below one of the path prefixes.
True when the file is in included (empty means everywhere) and not in excluded.
Matches filename against exact paths, path suffixes or */** globs.
Normalises separators and strips a leading ./.
Functions
True when filename lies at or below one of the path prefixes.
True when the file is in included (empty means everywhere) and not in excluded.
Matches filename against exact paths, path suffixes or */** globs.
A pattern without * matches the whole filename or a trailing path suffix.
Normalises separators and strips a leading ./.