Skip to content

fix: flag every machine-specific absolute path in body/relative-paths - #369

Open
MaximeGaudin wants to merge 2 commits into
mainfrom
fix/issue-74-absolute-path-roots
Open

fix: flag every machine-specific absolute path in body/relative-paths#369
MaximeGaudin wants to merge 2 commits into
mainfrom
fix/issue-74-absolute-path-roots

Conversation

@MaximeGaudin

Copy link
Copy Markdown
Owner

Fixes #74

body/relative-paths only flagged absolute paths under /Users, /home, /var, /opt, /tmp or ~, so machine-specific paths under /mnt, /etc, /root and every other root produced no finding.

The pattern now matches any absolute path (and still ~/...), and the check skips only the top-level directories the OS itself provides on every machine: usr, bin, sbin, lib, lib32, lib64, dev, proc, sys, run, System. Portable references like /usr/bin/python3 or /dev/null stay quiet, while /mnt/data/input.csv, /etc/hosts and /root/.bashrc are reported.

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.

body/relative-paths (ABSOLUTE_PATH regex) misses common absolute-path roots: /mnt, /etc, /root

1 participant