Commit baedad5
committed
feat:
NOTE: There is an issue with help messages not showing up in snapshots, I will fix this in the following PR.
This rule's error message is packed with both type information and help information (what types are allowed). I've moved the resolved type info to be labeled ranges, and moved the message about what types are allowed to the help message. This should keep the information a little bit more structured and not crowd the main error message as much.restrict-plus-operands: improve diagnostic (#725)1 parent f3fe501 commit baedad5
File tree
3 files changed
+297
-95
lines changed- e2e/__snapshots__
- internal
- rule_tester/__snapshots__
- rules/restrict_plus_operands
3 files changed
+297
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
3301 | 3317 | | |
3302 | | - | |
| 3318 | + | |
3303 | 3319 | | |
3304 | 3320 | | |
3305 | 3321 | | |
| |||
3312 | 3328 | | |
3313 | 3329 | | |
3314 | 3330 | | |
3315 | | - | |
| 3331 | + | |
| 3332 | + | |
3316 | 3333 | | |
3317 | 3334 | | |
3318 | 3335 | | |
| |||
0 commit comments