Cyclomatic complexity: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Alter: pages, template type. Add: s2cid. Removed URL that duplicated unique identifier. Formatted dashes. | You can use this bot yourself. Report bugs here. | Activated by AManWithNoPlan | All pages linked from User:AManWithNoPlan/sandbox2 | via #UCB_webform_linked
There is no requirement for cyclomatic complexity or code complexity in IEC 62304. They list that a company should enforce coding guidelines (not mandatory), among which cyclomatic complexity could be an element. This is mentioned as example. It is up to the company to determine fitting, state-of-the-art techniques.
Tag: references removed
Line 159:
title=An Investigation of the Maintenance and Support Characteristics of Commercial Software|
year=1992|volume=1|issue=3|pages=147–158|
issn=1573-1367|doi=10.1007/bf01720922}}</ref> Since program size is not a controllable feature of commercial software, the usefulness of McCabes's number has been called to question.<ref name="fenton" /> The essence of this observation is that larger programs tend to be more complex and to have more defects. Reducing the cyclomatic complexity of code is [[correlation does not imply causation|not proven]] to reduce the number of errors or bugs in that code. International safety standards like [[ISO 26262]] and [[IEC 62304]], however, mandate coding guidelines that enforce low code complexity.<ref name="ISO26262Part3">{{cite book | title =ISO 26262-3:2011(en) Road vehicles — Functional safety — Part 3: Concept phase| publisher =International Standardization Organization | url =https://www.iso.org/obp/ui/#iso:std:iso:26262:-3:ed-1:v1:en}}</ref><ref>{{cite book|title=Medical device software – Software life cycle processes|chapter-url=http://webstore.iec.ch/preview/info_iec62304%7Bed1.0%7Den_d.pdf|work=INTERNATIONAL IEC STANDARD 62304 First edition 2006-05|publisher=International Electrotechnical Commission|author=International Electrotechnical Commission|year=2006|page=51|chapter=B.5.5 SOFTWARE UNIT implementation and verification}}</ref>
 
==Artificial intelligence==