Commit f2fbb09
committed
refactor: simplify log file paths by removing codacy-cli-v2 prefix
Modify logger path handling to:
- Remove any codacy-cli-v2 prefix from log file paths
- Strip out parent directory references (../)
- Clean up absolute paths to show only project-relative paths
- Handle various path formats including CI environment paths
Example transformations:
../codacy-cli-v2/cmd/install.go → cmd/install.go
../../home/runner/work/codacy-cli-v2/codacy-cli-v2/cmd/root.go → cmd/root.go1 parent 4b46004 commit f2fbb09
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
0 commit comments