The distribution of complexity of units (measured with McCabe index).
Intro
Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
Conditional complexity is measured at the unit level (methods, functions...).
Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
public void onFillRequest() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/MultiStepsService.java
57
16
3
private void appendViewMetadata() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/ClientAutofillDataBuilder.java
42
14
8
public void onCreate() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/SettingsActivity.java
104
14
1
public void autofill() in AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/CustomVirtualView.java
55
14
1
protected String inferHint() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/DebugService.java
20
13
2
void bindValueToNode() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/adapter/DatasetAdapter.java
48
12
4
protected String getHint() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/DebugService.java
private void parseAutofillFields() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/ClientAutofillDataBuilder.java
28
8
3
public void checkValid() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/DigitalAssetLinksRepository.java
66
8
3
public FillResponse buildResponse() in AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/adapter/ResponseAdapter.java