aws-samples / amazon-kinesis-data-analytics-snapshot-manager-for-flink
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 8 units with 214 lines of code in units (83.6% of code).
    • 1 very long units (112 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (70 lines of code)
    • 1 small units (16 lines of code)
    • 3 very small units (16 lines of code)
52% | 0% | 32% | 7% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py52% | 0% | 32% | 7% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT52% | 0% | 32% | 7% | 7%
Alternative Visuals
Longest Units
Top 8 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
112 22 2
def track_snapshot_manager_status()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
25 6 8
def take_app_snapshot()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
23 5 3
def list_flink_app_snapshots()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
22 9 3
def delete_snapshot()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
16 4 3
def describe_flink_application()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
9 3 2
def send_sns_notification()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
5 2 7
def notify_when_app_is_not_running()
in amazon_kinesis_data_analytics_for_apache_flink_snapshot_manager.py
2 1 4