Commit b0351f3
committed
Add early return when offset range is unavailable in
- Added null check for `context.getOffsetRangeForNode(node)` before processing fuzzy match suggestions
- Moved range calculation before fuzzy matching logic to avoid unnecessary processing
- Changed `fixer.replaceWithText` to use validated range instead of `[node.start!, node.end!]`
- Prevents potential errors when node offset range cannot be determinedno-invalid-scriptlets rule fuzzy matching1 parent 2d21efc commit b0351f3
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
245 | 251 | | |
246 | 252 | | |
247 | 253 | | |
| |||
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
270 | | - | |
| 276 | + | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
| |||
0 commit comments