Skip to content

Fix --cocomo-project-type panic for case-variant built-in types - #742

Open
YuriNachos wants to merge 1 commit into
boyter:masterfrom
YuriNachos:YuriNachos/w6-scc-organic
Open

Fix --cocomo-project-type panic for case-variant built-in types#742
YuriNachos wants to merge 1 commit into
boyter:masterfrom
YuriNachos:YuriNachos/w6-scc-organic

Conversation

@YuriNachos

Copy link
Copy Markdown
Contributor

ProcessConstants lower-cased the project-type for its membership check but the COCOMO indexers used the raw value, so any case-variant built-in (e.g. Organic) indexed a nil slice and panicked. Route every projectType lookup through a cocomoCoefficients guard that normalizes to canonical lowercase and falls back to organic.

@pr-insights pr-insights Bot added M/complexity Normal or medium complexity M/size Normal or medium sized change labels Aug 9, 2026
@boyter

boyter commented Aug 10, 2026

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

ProcessConstants lower-cased the project-type for its membership check but the COCOMO indexers used the raw value, so any case-variant built-in (e.g. Organic) indexed a nil slice and panicked. Route every projectType lookup through a cocomoCoefficients guard that normalizes to canonical lowercase and falls back to organic.
@YuriNachos
YuriNachos force-pushed the YuriNachos/w6-scc-organic branch from c6c198d to 1406ada Compare August 10, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M/complexity Normal or medium complexity M/size Normal or medium sized change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants