pathlint 0.0.15

Lint the PATH environment variable against declarative ordering rules.
Documentation
# OS-baseline directories. These match the binaries that ship with
# the OS itself (Win32 system DLLs etc., macOS /usr/bin, the
# distro's /usr/bin on Linux). Distro package managers also drop
# their binaries here, so apt / pacman / dnf overlap with
# os_baseline_linux on the same path — that's by design.
#
# Renamed from `system_*` to `os_baseline_*` in 0.0.14 (was
# ambiguous with the OS detection layer). Old names are not
# aliased — pathlint.toml files referencing `system_windows` etc.
# must be updated.

[source.os_baseline_windows]
windows = "$SystemRoot/System32"

[source.os_baseline_macos]
macos = "/usr/bin"

[source.os_baseline_linux]
linux = "/usr/bin"

# /usr/sbin is a separate source on Linux because Arch / openSUSE
# Tumbleweed / Solus symlink /usr/sbin → /usr/bin while traditional
# distros keep them split. `which ls` reports /usr/sbin/ls on the
# symlinked layout, so a rule that prefers `apt` / `pacman` /
# `dnf` (all `/usr/bin`-only) would miss. Reference
# `os_baseline_linux_sbin` alongside the package manager when you
# want both layouts to satisfy the rule:
#
#   [[expect]]
#   command = "ls"
#   prefer = ["pacman", "os_baseline_linux_sbin"]
[source.os_baseline_linux_sbin]
linux = "/usr/sbin"