Commit baf3514
Fix snake_case detection to accept single-word lowercase identifiers
DetectCasing's snake_case regex required at least one underscore, so
single-word lowercase names like `currency` fell into a separate
"lowercase" bucket. When a tool had params like
`origin_country, hs_code, currency`, the deterministic
pn_consistent_casing check produced the false positive
"Parameter 'currency' uses lowercase but other params use snake_case."
Use `*` (zero-or-more underscores) so single-word lowercase names
classify as snake_case. The "lowercase" branch becomes unreachable
and is removed. The tool-name casing regex at line 172 already used
this form; this brings DetectCasing into agreement.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f5d5d1e commit baf3514
1 file changed
Lines changed: 3 additions & 6 deletions
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1052 | 1054 | | |
1053 | 1055 | | |
1054 | 1056 | | |
| |||
1068 | 1070 | | |
1069 | 1071 | | |
1070 | 1072 | | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | 1073 | | |
1077 | 1074 | | |
1078 | 1075 | | |
| |||
0 commit comments