Genese complexity report

<- src/languages-to-json-ast/java
Files : 412
Methods : 169
Complexity Index : 1633.3
Cyclomatic complexity : 439
Cognitive complexity
56.8 % Correct 96/169
36.1 % Warning 61/169 (threshold : 10)
7.1 % Error 12/169 (threshold : 20)
Cyclomatic complexity
92.9 % Correct 157/169
6.5 % Warning 11/169 (threshold : 5)
0.6 % Error 1/169 (threshold : 10)
Subfolders of src/languages-to-json-ast/java
Folders Number of files Number of methods Cognitive complexity of methods Cyclomatic complexity of methods
Correct Warning Error Correct Warning Error
../
src/languages-to-json-ast/java 412 169 96 61 12 157 11 1
src/languages-to-json-ast/java/const 1 0 0 0 0 0 0 0
src/languages-to-json-ast/java/cstToAstCases 140 164 94 58 12 153 11 0
src/languages-to-json-ast/java/interfaces 1 0 0 0 0 0 0 0
src/languages-to-json-ast/java/models 267 0 0 0 0 0 0 0
src/languages-to-json-ast/java/services 2 2 1 1 0 1 0 1
Files of src/languages-to-json-ast/java
File Method Cognitive complexity Cyclomatic complexity
cst-to-ast.ts getBinaryOperatorName 18.4 1
cst-to-ast.ts cstToAst 11 3
cst-to-ast.ts toKebabCase 8.4 2
Methods of src/languages-to-json-ast/java folder and its subfolders (ordered by decreasing cognitive complexity)
File Method Cognitive complexity Cyclomatic complexity
statement-without-trailing-substatement.ts run 33.5 9
primary-prefix.ts run 30.9 7
integral-type.ts run 27.2 6
array-creation-expression.ts run 26.6 7
primary-suffix.ts run 26 6
primary.ts handleNoMethodInvocationSuffix 24.6 8
assert-statement.ts generateAssertStatement 24 6
binary-expression.ts constructBinaryOperatorsAst 24 2
binary-expression.ts splitExpression 22.8 4
basic-for-statement.ts run 21.5 5
enhanced-for-statement.ts run 21.5 5
primary.ts toPropertyAccessExpression 20.9 10
statement.ts run 20.4 5
constructor-declaration.ts run 19.8 1
primary.ts process 19.4 5
ast-file-generation-java.service.ts generate 19.4 15
binary-expression.ts reconstructOperators 19 5
unary-expression.ts run 18.8 2
cst-to-ast.ts getBinaryOperatorName 18.4 1
lambda-expression.ts run 17.8 2
unqualified-class-instance-creation-expression.ts run 17.8 4
try-statement.ts run 17.7 4
binary-expression.ts run 17 5
method-header.ts run 16.3 4
reference-type-cast-expression.ts run 16.3 4
unqualified-explicit-constructor-invocation.ts run 16.1 4
array-creation-expression.ts createElementAccess 16 9
ternary-expression.ts run 15.8 4
for-statement.ts run 15.3 3
ternary-expression.ts questionMarkCase 15 4
primary.ts getOtherCasesChildren 14.6 1
primary.ts createElementAccess 14.6 7
interface-method-declaration.ts run 14.2 1
method-declaration.ts run 14.2 1
class-body-declaration.ts run 13.3 5
primary.ts getMethodInvocationSuffixChildren 13 4
binary-expression.ts binaryOperatorsCase 12.9 2
primary.ts run 12.9 3
primary.ts handleMethodInvocationSuffix 12.9 2
switch-case.ts run 12.8 3
constructor-body.ts run 12.6 3
do-statement.ts run 12.6 1
if-statement.ts run 12.6 1
switch-statement.ts run 12.6 1
while-statement.ts run 12.6 1
catch-clause.ts run 12.5 1
lambda-body.ts run 12.5 3
binary-expression.ts toBinaryExpression 12.4 3
local-variable-declaration.ts run 12.2 3
variable-declarator.ts run 12.2 3
primary.ts isFunctionCallCase 11.8 7
unann-class-type.ts run 11.8 3
floating-point-type.ts run 11.3 3
binary-expression.ts assignmentOperatorCase 11.2 3
primitive-type.ts run 11.2 3
result.ts run 11.2 3
cast-expression.ts run 11.1 3
constructor-declarator.ts run 11.1 3
expression.ts run 11.1 3
fqn-or-ref-type.ts run 11.1 3
new-expression.ts run 11.1 3
numeric-type.ts run 11.1 3
primitive-cast-expression.ts run 11.1 3
unann-type.ts run 11.1 3
unary-expression.ts toUnaryPrefixOperator 11.1 3
variable-initializer.ts run 11.1 3
cst-to-ast.ts cstToAst 11 3
normal-class-declaration.ts run 10.9 1
normal-interface-declaration.ts run 10.9 1
primary.ts getNewExpression 10.9 3
variable-para-regular-parameter.ts run 10.9 1
block-statement.ts run 10.5 3
primary.ts singleAccessCase 10.1 5
method-declarator.ts run 10 2
fqn-or-ref-type-part-common.ts run 9.1 3
cst-to-ast.ts toKebabCase 8.4 2
class-declaration.ts run 7.8 2
reference-type.ts run 7.6 2
switch-block.ts run 7.6 1
class-literal-suffix.ts run 7.5 2
integer-literal.ts run 7.5 2
array-access-suffix.ts run 7.4 2
array-initializer.ts run 7.4 2
dim-exprs.ts run 7.4 2
expression-statement.ts run 7.4 2
formal-parameter.ts run 7.4 2
interface-declaration.ts run 7.4 2
method-invocation-suffix.ts run 7.4 2
for-init.ts run 7.3 4
parenthesis-expression.ts run 7.3 1
finally.ts run 7.2 1
block.ts run 7.1 2
return-statement.ts run 7.1 2
class-member-declaration.ts run 7 3
interface-member-declaration.ts run 7 3
method-body.ts run 7 3
throw-statement.ts run 7 2
variable-declarator-list.ts run 6.7 2
class-modifier.ts run 6.3 1
lambda-parameters.ts run 6.3 2
simple-type-name.ts run 6 2
argument-list.ts run 5.9 2
array-creation-default-init-suffix.ts run 5.9 2
array-creation-explicit-init-suffix.ts run 5.9 2
class-body.ts run 5.9 2
class-or-interface-type.ts run 5.9 2
constant-expression.ts run 5.9 2
dim-expr.ts run 5.9 2
exception-type-list.ts run 5.9 2
exception-type.ts run 5.9 2
explicit-constructor-invocation.ts run 5.9 2
for-update.ts run 5.9 2
fqn-or-ref-type-part-first.ts run 5.9 2
fqn-or-ref-type-part-rest.ts run 5.9 2
interface-body.ts run 5.9 2
statement-expression-list.ts run 5.9 2
statement-expression.ts run 5.9 2
switch-label.ts run 5.9 2
throws.ts run 5.9 2
type-argument-list.ts run 5.9 2
type-argument.ts run 5.9 2
type-arguments-or-diamond.ts run 5.9 2
type-arguments.ts run 5.9 2
unann-class-or-interface-type.ts run 5.9 2
unann-primitive-type.ts run 5.9 2
unann-reference-type.ts run 5.9 2
unary-expression-not-plus-minus.ts run 5.9 2
variable-initializer-list.ts run 5.9 2
catch-formal-parameter.ts run 5.8 1
catch-type.ts run 5.8 1
catches.ts run 5.8 1
block-statements.ts run 5.6 2
local-variable-declaration-statement.ts run 5.6 2
local-variable-type.ts run 5.6 2
literal.ts run 5.2 2
primary.ts getThisKeywordChildren 5.2 1
class-type.ts run 4.9 2
method-reference-suffix.ts run 4.9 2
class-or-interface-type-to-instantiate.ts run 4.8 1
type-identifier.ts run 4.8 1
variable-declarator-id.ts run 4.8 1
formal-parameter-list.ts run 4.7 1
assert-statement.ts run 3.8 1
identifier.ts run 3.7 1
binary-operator.ts run 2.9 1
assignment-operator.ts run 2.8 1
genese-mapper.service.ts getMappedCompilationUnit 2.6 1
identifier.ts setType 2.3 1
boolean.ts run 2 1
byte.ts run 2 1
char.ts run 2 1
colon-token.ts run 2 1
decimal-literal.ts run 2 1
double.ts run 2 1
float.ts run 2 1
int.ts run 2 1
interface-method-declaration.ts getName 2 4
long.ts run 2 1
method-declaration.ts getName 2 4
new.ts run 2 1
public.ts run 2 1
question-mark.ts run 2 1
short.ts run 2 1
super.ts run 2 1
this.ts run 2 1
void.ts run 2 1
unary-prefix-operator.ts run 1.8 1
assert.ts run 1.7 1
arrow.ts run 1.6 1