aws-quickstart / qs-cfn-lint-rules
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 111 units with 1,127 lines of code in units (58.4% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (77 lines of code)
    • 13 medium size units (394 lines of code)
    • 17 small units (243 lines of code)
    • 80 very small units (413 lines of code)
0% | 6% | 34% | 21% | 36%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 6% | 34% | 21% | 36%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
qs_cfn_lint_rules0% | 10% | 34% | 20% | 34%
qs_cfn_lint_rules/stack0% | 0% | 42% | 26% | 30%
type_fixer0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def match()
in qs_cfn_lint_rules/SentenceCase.py
77 13 2
def verify_agnostic_partition()
in qs_cfn_lint_rules/IAMPartition.py
47 22 3
def determine_changes()
in qs_cfn_lint_rules/IAMResourceWildcard.py
38 18 2
def match()
in qs_cfn_lint_rules/InclusiveLanguage.py
37 16 2
def get_errors()
in qs_cfn_lint_rules/SentenceCase.py
32 13 3
def find_local_child_template()
in qs_cfn_lint_rules/stack/StackHelper.py
32 9 2
def match()
in qs_cfn_lint_rules/stack/MatchingParameterNotPassed.py
30 5 2
def check_runtime()
in qs_cfn_lint_rules/LambdaRuntimeEOL.py
29 5 3
def determine_changes()
in qs_cfn_lint_rules/IAMPartition.py
28 13 2
def match()
in qs_cfn_lint_rules/stack/DefaultParameter.py
27 4 2
def match()
in qs_cfn_lint_rules/stack/MissingParameter.py
25 4 2
def match()
in qs_cfn_lint_rules/IAMExcludeReason.py
24 12 2
def determine_wildcard_resource_violations()
in qs_cfn_lint_rules/IAMResourceWildcard.py
23 12 2
def match()
in qs_cfn_lint_rules/stack/ParameterNotInChild.py
22 4 2
def match()
in qs_cfn_lint_rules/IAMActionWildcard.py
20 11 2
def evaluate_expression_controller()
in qs_cfn_lint_rules/stack/StackHelper.py
19 10 1
def match()
in qs_cfn_lint_rules/Groups.py
18 9 2
def match()
in qs_cfn_lint_rules/Labels.py
18 9 2
def evaluate_string()
in qs_cfn_lint_rules/stack/StackHelper.py
17 5 2
def match()
in qs_cfn_lint_rules/common.py
16 4 2