| Summary: | Eclipse C/C++ Code complexity | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | andy Mising name <andreas.back> | ||||
| Component: | cdt-codan | Assignee: | CDT Codan Inbox <cdt-codan-inbox> | ||||
| Status: | NEW --- | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | cdtdoug, yevshif | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 350856 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
andy Mising name
Created attachment 201600 [details] Error rate as a function of complexity This picture from http://www.enerjy.com/blog/?p=198 exaplains this quite good One could use color coding on functions based on these old SEI results E.g based from http://www.scribd.com/doc/49763722/24/Cyclomatic-complexity 1-10 Simple program, without much risk 11-20 Complexity and moderate risk 21-50 Complex, high risk Above 50 Not testable, high risk E.g green 1-20 Yellow 21-50 Red 51- or green 1-10 orange 11-20 Yellow 21-50 Red 51 - What do you think This is quite similar to another case here https://bugs.eclipse.org/bugs/show_bug.cgi?id=372722 |