- use
syntex_syntaxcrate for codemap/ast/etc.
Created
September 5, 2019 19:09
-
-
Save damienstanton/a5815934d1282d091ba4d2818103d457 to your computer and use it in GitHub Desktop.
cocomo notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package processor | |
| import ( | |
| "math" | |
| ) | |
| // EstimateCost calculates the cost in dollars applied using generic COCOMO2 weighted values based | |
| // on the average yearly wage | |
| func EstimateCost(effortApplied float64, averageWage int64) float64 { | |
| return effortApplied * float64(averageWage/12) * float64(1.8) | |
| } | |
| // EstimateEffort calculate the effort applied using generic COCOMO2 weighted values | |
| func EstimateEffort(sloc int64) float64 { | |
| var eaf float64 = 1 | |
| // Numbers based on organic project, small team, good experience working with requirements | |
| var effortApplied = float64(3.2) * math.Pow(float64(sloc)/1000, 1.05) * eaf | |
| return effortApplied | |
| } | |
| // EstimateScheduleMonths estimates the effort in months based on the result from EstimateEffort | |
| func EstimateScheduleMonths(effortApplied float64) float64 { | |
| // Numbers based on organic project small team, good experience working with requirements | |
| return float64(2.5) * math.Pow(effortApplied, 0.38) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Rust": { | |
| "complexitychecks": [ | |
| "for ", | |
| "for(", | |
| "if ", | |
| "if(", | |
| "switch ", | |
| "while ", | |
| "else ", | |
| "|| ", | |
| "&& ", | |
| "!= ", | |
| "== " | |
| ], | |
| "extensions": [ | |
| "rs" | |
| ], | |
| "line_comment": [ | |
| "//" | |
| ], | |
| "multi_line": [ | |
| [ | |
| "/*", | |
| "*/" | |
| ] | |
| ], | |
| "nestedmultiline": true, | |
| "quotes": [ | |
| { | |
| "end": "\"", | |
| "start": "\"" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment