Commit 8bd7f91
committed
fix: use legacyPattern in type mapping validation to detect dash-stripped variable names
The legacyPattern variable (dash-stripped form of legacy variable name) was
computed but never used in CheckTypeMappingUsageAsync. The Contains check
only looked for the original hyphenated form, missing cases where COBOL
variables like WS-ACCOUNT-NUM appear as WSACCOUNTNUM in converted code.
Now checks for both forms, consistent with CheckSignatureUsageAsync above.
Resolves github-code-quality warning on PR #22.1 parent eea5baf commit 8bd7f91
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
| 367 | + | |
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
373 | 374 | | |
374 | | - | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
0 commit comments