Repository navigation
Commit f6a1605
committed
Make unmatched inline ignores fixable
ignore.unmatchedIdentifier removes the identifier from the @PHPStan-Ignore
comment, or the whole ignore when it is the only one. ignore.unmatchedLine
removes the @phpstan-ignore-line / -next-line ignore. Plain comments are
edited as text and left alone when they have other contents. PHPDocs are
edited with PhpDocEditor, so their other tags are kept.
Amp-Thread-ID: https://ampcode.com/threads/T-01a198ef-d81e-7532-81f4-438bae7a4db31 parent 5520ce9 commit f6a1605
9 files changed
Lines changed: 604 additions & 4 deletions
File tree
- build
- src
- Analyser
- Ignore
- Testing
- tests/PHPStan/Analyser
- Ignore
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
399 | 402 | | |
400 | 403 | | |
401 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
402 | 422 | | |
403 | 423 | | |
404 | 424 | | |
| |||
423 | 443 | | |
424 | 444 | | |
425 | 445 | | |
| 446 | + | |
426 | 447 | | |
427 | 448 | | |
428 | | - | |
| 449 | + | |
429 | 450 | | |
430 | 451 | | |
431 | 452 | | |
432 | 453 | | |
433 | 454 | | |
434 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
435 | 458 | | |
436 | 459 | | |
437 | 460 | | |
438 | 461 | | |
439 | | - | |
| 462 | + | |
440 | 463 | | |
441 | 464 | | |
442 | 465 | | |
443 | 466 | | |
444 | 467 | | |
445 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
446 | 471 | | |
447 | 472 | | |
448 | 473 | | |
| |||
0 commit comments