Commit 49711eb
committed
fix(lint-toml): improve file handling and whitespace robustness
Update the lint-toml script to handle file existence checks and improve whitespace handling:
- Collect existing files into array before processing
- Use array expansion for safer filename handling
- Add proper quoting around filenames to handle spaces
- Maintain same functionality while improving robustness
This ensures the script works correctly with files containing spaces and avoids errors when files don't exist.1 parent da812cf commit 49711eb
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | | - | |
15 | | - | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
22 | | - | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments