Commit 3cf11db
fix: preserve original file permissions in lint auto-fix
- Replace hardcoded 0600 with preservation of original file permissions
- Falls back to 0644 if stat fails
- Prevents breaking team workflows where files need broader permissions
- Addresses security/usability issue identified in PR #111 code review1 parent 94e8bf8 commit 3cf11db
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
0 commit comments