Repository navigation
Commit 6f475c3
Add tests for the default severity of deprecated and unreachable
Summary:
At the Pyre sync on 2026-10-29 the team agreed that `deprecated` and `unreachable` should default to the `hint` severity added for #5113, instead of `warn`. Editors already draw both in their own way, struck through or greyed out, so at `hint` they stay visible in the editor without a warning squiggle.
This adds two tests that record today's behaviour under a `bug:` comment, so the change in the next diff shows up as a change in their expectations:
- `test_deprecated_and_unreachable_severity` checks both kinds under three presets: `warn` with the default preset, silenced by `basic`, and `error` under `all`.
- `test_deprecated_and_unreachable_in_lsp` checks that at their default severity both reach the editor as LSP warnings, with the strikethrough and greyed-out tags.
Reviewed By: kinto0
Differential Revision: D128469592
fbshipit-source-id: 80fe8f5f7c31d191c7f6bff4b2b10f0ec2f28a161 parent 7576a23 commit 6f475c3
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
776 | 792 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1124 | 1152 | | |
0 commit comments