Commit f3cdeb7
committed
fix(lint): preserve explicit switch coverage semantics
Real defaults were hiding finite missing members while singleton and mixed open
unions escaped the checker walk. Align switch coverage with the upstream scalar
policies and keep generated branches as explicit editor suggestions.
Constraint: Validation is delegated to targeted local experiments after rebasing and GitHub CI
Rejected: Treat every default as exhaustive | violates the upstream default and issue reproduction
Rejected: Reuse Finding.Fix for missing cases | would leak throw stubs into automatic fix-all
Confidence: high
Scope-risk: moderate
Directive: Keep finite-member coverage and open-type default policy independent
Tested: Exhaustive source review across production, shim, LSP, tests, fixtures, and docs
Not-tested: Executable validation had not run at commit time
Related: #4161 parent b3cb5b2 commit f3cdeb7
26 files changed
Lines changed: 2139 additions & 171 deletions
File tree
- packages
- lint
- linthost
- src/structures/rules
- test
- command
- rules/typescript
- ttsc
- internal/lspserver
- shim/checker
- test/driver
- tests
- test-lint/src
- cases
- features/plugin
- test-ttsc/src/native-plugins/corpus-misc
- website/src/content/docs/lint/rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
| |||
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
173 | 205 | | |
174 | 206 | | |
175 | 207 | | |
| |||
210 | 242 | | |
211 | 243 | | |
212 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
213 | 253 | | |
214 | 254 | | |
215 | 255 | | |
| |||
0 commit comments