File Complexity Overall
  • There are 82 files with units, with 9,464 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 286 lines of code)
    • 80 simple files (McCabe index sum 1-25; 9,178 lines of code)
  • 530 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 3% | 96%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
kt0% | 0% | 0% | 1% | 98%
py0% | 0% | 0% | 79% | 20%
java0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
graphql-dgs-codegen-shared-core0% | 0% | 0% | 31% | 68%
scripts0% | 0% | 0% | 79% | 20%
graphql-dgs-codegen-core0% | 0% | 0% | 0% | 100%
graphql-dgs-codegen-gradle0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
131 8 31 24 14
InputValueSerializer.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen
155 3 30 19 18
TypeUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
240 11 23 10 10
ConstantsGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
241 3 18 7 16
DirectivesUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
85 2 15 18 9
KotlinPoetUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
338 4 13 4 9
GraphQLMultiQueryRequest.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen
49 1 12 24 12
JavaPoetUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
212 2 11 5 9
CodeGen.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
835 5 10 1 3
KotlinConstantsGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
195 1 10 5 10
EntitiesRepresentationTypeGeneratorUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators
98 4 9 9 4
DataTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
817 2 8 1 4
InterfaceGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
140 1 8 6 8
EnumTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
60 1 8 13 8
KotlinInterfaceTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
90 1 8 9 8
KotlinTypeUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
142 6 8 6 3
SchemaExtensionsUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
127 6 8 6 3
JacksonVersionDetector.kt
in graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle
49 2 8 16 5
Kotlin2TypeLookup.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin2
204 6 7 3 2
Kotlin2Core.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
146 7 7 5 1
ProjectionSerializer.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen
71 1 7 10 7
common.py
in scripts
33 6 7 21 2
CodeGenCli.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
130 2 6 5 5
DocFileSpec.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
70 3 6 9 3
RequiredTypeCollector.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
103 6 6 6 1
KotlinEnumTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
54 1 5 9 5
DocGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
258 1 5 2 5
GenerateJavaTask.kt
in graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle
271 3 5 2 3
GeneratedFileWriter.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
239 1 4 2 4
ClientApiGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
919 2 4 0 3
KotlinDataTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
256 2 4 2 2
ReservedKeywordSanitizer.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/codegen
18 1 4 22 4
SearchResultProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/unionWithExtendedType/expected/client
22 3 3 14 1
Kotlin2CodeGenTest.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen
299 2 3 1 2
UnionTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java
49 1 3 6 3
KotlinUnionTypeGenerator.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/kotlin
47 1 3 6 3
PackageParserUtil.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
34 1 3 9 3
CodegenPlugin.kt
in graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle
67 1 3 4 3
NodeProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithMappedInterfaces/expected/client
22 2 2 9 1
SearchResultProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/union/expected/client
17 2 2 12 1
SearchResultProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/unionTypesWithoutInterfaceCanDeserialize/expected/client
17 2 2 12 1
PetProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/interfaceClassWithInterfaceFields/expected/client
48 2 2 4 1
GenerateKotlinCode.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
124 1 2 2 2
ClassnameShortener.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
18 1 2 11 2
SharedTypeUtils.kt
in graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/shared
136 2 2 1 1
InputValueSerializerInterface.kt
in graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen
11 2 2 18 1
FruitProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/interfaceWithInterfaceInheritance/expected/client
20 1 1 5 1
PersonProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/dataClassWithInterface/expected/client
24 1 1 4 1
PersonProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/expected/client
19 1 1 5 1
QueryProjection.kt
in graphql-dgs-codegen-core/src/integTest/kotlin/com/netflix/graphql/dgs/codegen/cases/projectionWithTypeAndArgs/expected/client
22 1 1 5 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...