aws-samples / aws-amplify-example-recipe-app-react-native
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 11 units with 100 lines of code in units (26.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (39 lines of code)
    • 1 small units (19 lines of code)
    • 9 very small units (42 lines of code)
0% | 0% | 39% | 19% | 42%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 48% | 23% | 27%
m0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
android/app/src/debug/java/com/dlbamplify0% | 0% | 100% | 0% | 0%
android/app/src/main/java/com/dlbamplify0% | 0% | 0% | 46% | 53%
ios/DLBAMplify0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
public static void initializeFlipper()
in android/app/src/debug/java/com/dlbamplify/ReactNativeFlipper.java
39 3 2
private static void initializeFlipper()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
19 6 2
static void InitializeFlipper()
in ios/DLBAMplify/AppDelegate.m
9 1 1
6 1 0
protected List getPackages()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
5 1 0
public void onCreate()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
5 1 0
int main()
in ios/DLBAMplify/main.m
5 1 2
public boolean getUseDeveloperSupport()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
3 1 0
protected String getJSMainModuleName()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
3 1 0
public ReactNativeHost getReactNativeHost()
in android/app/src/main/java/com/dlbamplify/MainApplication.java
3 1 0
protected String getMainComponentName()
in android/app/src/main/java/com/dlbamplify/MainActivity.java
3 1 0