main
1id: general-hardcoded-home-paths
2message: Hardcoded /home/vincent path found
3severity: warning
4language: bash
5note: |
6 Use $HOME or relative paths instead of hardcoded /home/vincent.
7 Makes scripts more portable and reusable.
8
9 Good alternatives:
10 - $HOME instead of /home/vincent
11 - $(git rev-parse --show-toplevel) for repo root
12 - Relative paths when possible
13rule:
14 pattern: "/home/vincent/$PATH"
15 not:
16 inside:
17 any:
18 - kind: comment
19 - pattern: '"$STRING"' # Inside quoted strings might be intentional