Genese complexity report

<- node_modules/chevrotain/lib
Files : 1
Methods : 184
Complexity Index : 125.3
Cyclomatic complexity : 168
Cognitive complexity
100 % Correct 184/184
0 % Warning 0/184 (threshold : 10)
0 % Error 0/184 (threshold : 20)
Cyclomatic complexity
100 % Correct 184/184
0 % Warning 0/184 (threshold : 5)
0 % Error 0/184 (threshold : 10)
Subfolders of node_modules/chevrotain/lib
Folders Number of files Number of methods Cognitive complexity of methods Cyclomatic complexity of methods
Correct Warning Error Correct Warning Error
../
node_modules/chevrotain/lib 1 184 184 0 0 184 0 0
node_modules/chevrotain/lib/src 0 0 0 0 0 0 0 0
Files of node_modules/chevrotain/lib
File Method Cognitive complexity Cyclomatic complexity
chevrotain.d.ts RULE 1.9 1
chevrotain.d.ts OVERRIDE_RULE 1.9 1
chevrotain.d.ts OVERRIDE_RULE 1.7 1
chevrotain.d.ts RULE 1.7 1
chevrotain.d.ts OVERRIDE_RULE 1.7 1
chevrotain.d.ts validateGrammar 1.7 1
chevrotain.d.ts RULE 1.6 1
chevrotain.d.ts createTokenInstance 1.2 1
chevrotain.d.ts generateParserFactory 1.2 1
chevrotain.d.ts BACKTRACK 1 1
chevrotain.d.ts option 1 1
chevrotain.d.ts many 0.9 1
chevrotain.d.ts atLeastOne 0.9 1
chevrotain.d.ts OPTION 0.9 1
chevrotain.d.ts OPTION1 0.9 1
chevrotain.d.ts OPTION2 0.9 1
chevrotain.d.ts OPTION3 0.9 1
chevrotain.d.ts OPTION4 0.9 1
chevrotain.d.ts OPTION5 0.9 1
chevrotain.d.ts OPTION6 0.9 1
chevrotain.d.ts OPTION7 0.9 1
chevrotain.d.ts OPTION8 0.9 1
chevrotain.d.ts OPTION9 0.9 1
chevrotain.d.ts subrule 0.9 1
chevrotain.d.ts 0.9 0
chevrotain.d.ts 0.9 0
chevrotain.d.ts resolveGrammar 0.9 1
chevrotain.d.ts computeContentAssist 0.8 1
chevrotain.d.ts or 0.8 1
chevrotain.d.ts MANY 0.8 1
chevrotain.d.ts MANY1 0.8 1
chevrotain.d.ts MANY2 0.8 1
chevrotain.d.ts MANY3 0.8 1
chevrotain.d.ts MANY4 0.8 1
chevrotain.d.ts MANY5 0.8 1
chevrotain.d.ts MANY6 0.8 1
chevrotain.d.ts MANY7 0.8 1
chevrotain.d.ts MANY8 0.8 1
chevrotain.d.ts MANY9 0.8 1
chevrotain.d.ts AT_LEAST_ONE 0.8 1
chevrotain.d.ts AT_LEAST_ONE1 0.8 1
chevrotain.d.ts AT_LEAST_ONE2 0.8 1
chevrotain.d.ts AT_LEAST_ONE3 0.8 1
chevrotain.d.ts AT_LEAST_ONE4 0.8 1
chevrotain.d.ts AT_LEAST_ONE5 0.8 1
chevrotain.d.ts AT_LEAST_ONE6 0.8 1
chevrotain.d.ts AT_LEAST_ONE7 0.8 1
chevrotain.d.ts AT_LEAST_ONE8 0.8 1
chevrotain.d.ts AT_LEAST_ONE9 0.8 1
chevrotain.d.ts SUBRULE 0.8 1
chevrotain.d.ts SUBRULE1 0.8 1
chevrotain.d.ts SUBRULE2 0.8 1
chevrotain.d.ts SUBRULE3 0.8 1
chevrotain.d.ts SUBRULE4 0.8 1
chevrotain.d.ts SUBRULE5 0.8 1
chevrotain.d.ts SUBRULE6 0.8 1
chevrotain.d.ts SUBRULE7 0.8 1
chevrotain.d.ts SUBRULE8 0.8 1
chevrotain.d.ts SUBRULE9 0.8 1
chevrotain.d.ts subrule 0.8 1
chevrotain.d.ts SUBRULE 0.8 1
chevrotain.d.ts SUBRULE1 0.8 1
chevrotain.d.ts SUBRULE2 0.8 1
chevrotain.d.ts SUBRULE3 0.8 1
chevrotain.d.ts SUBRULE4 0.8 1
chevrotain.d.ts SUBRULE5 0.8 1
chevrotain.d.ts SUBRULE6 0.8 1
chevrotain.d.ts SUBRULE7 0.8 1
chevrotain.d.ts SUBRULE8 0.8 1
chevrotain.d.ts SUBRULE9 0.8 1
chevrotain.d.ts 0.8 0
chevrotain.d.ts generateParserModule 0.8 1
chevrotain.d.ts getBaseCstVisitorConstructor 0.7 1
chevrotain.d.ts getBaseCstVisitorConstructorWithDefaults 0.7 1
chevrotain.d.ts consume 0.7 1
chevrotain.d.ts OR 0.7 1
chevrotain.d.ts OR1 0.7 1
chevrotain.d.ts OR2 0.7 1
chevrotain.d.ts OR3 0.7 1
chevrotain.d.ts OR4 0.7 1
chevrotain.d.ts OR5 0.7 1
chevrotain.d.ts OR6 0.7 1
chevrotain.d.ts OR7 0.7 1
chevrotain.d.ts OR8 0.7 1
chevrotain.d.ts OR9 0.7 1
chevrotain.d.ts SUBRULE 0.7 1
chevrotain.d.ts SUBRULE1 0.7 1
chevrotain.d.ts SUBRULE2 0.7 1
chevrotain.d.ts SUBRULE3 0.7 1
chevrotain.d.ts SUBRULE4 0.7 1
chevrotain.d.ts SUBRULE5 0.7 1
chevrotain.d.ts SUBRULE6 0.7 1
chevrotain.d.ts SUBRULE7 0.7 1
chevrotain.d.ts SUBRULE8 0.7 1
chevrotain.d.ts SUBRULE9 0.7 1
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts createSyntaxDiagramsCode 0.7 1
chevrotain.d.ts CONSUME 0.6 1
chevrotain.d.ts CONSUME1 0.6 1
chevrotain.d.ts CONSUME2 0.6 1
chevrotain.d.ts CONSUME3 0.6 1
chevrotain.d.ts CONSUME4 0.6 1
chevrotain.d.ts CONSUME5 0.6 1
chevrotain.d.ts CONSUME6 0.6 1
chevrotain.d.ts CONSUME7 0.6 1
chevrotain.d.ts CONSUME8 0.6 1
chevrotain.d.ts CONSUME9 0.6 1
chevrotain.d.ts tokenize 0.6 1
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts serializeGrammar 0.6 1
chevrotain.d.ts assignOccurrenceIndices 0.6 1
chevrotain.d.ts ACTION 0.5 1
chevrotain.d.ts MANY_SEP 0.5 1
chevrotain.d.ts MANY_SEP1 0.5 1
chevrotain.d.ts MANY_SEP2 0.5 1
chevrotain.d.ts MANY_SEP3 0.5 1
chevrotain.d.ts MANY_SEP4 0.5 1
chevrotain.d.ts MANY_SEP5 0.5 1
chevrotain.d.ts MANY_SEP6 0.5 1
chevrotain.d.ts MANY_SEP7 0.5 1
chevrotain.d.ts MANY_SEP8 0.5 1
chevrotain.d.ts MANY_SEP9 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP1 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP2 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP3 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP4 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP5 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP6 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP7 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP8 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP9 0.5 1
chevrotain.d.ts getNextPossibleTokenTypes 0.5 1
chevrotain.d.ts tokenMatcher 0.5 1
chevrotain.d.ts EMPTY_ALT 0.5 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts getGAstProductions 0.4 1
chevrotain.d.ts getTokenToInsert 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts createToken 0.4 1
chevrotain.d.ts tokenName 0.4 1
chevrotain.d.ts tokenLabel 0.4 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts visit 0.4 1
chevrotain.d.ts visitNonTerminal 0.4 1
chevrotain.d.ts visitFlat 0.4 1
chevrotain.d.ts visitOption 0.4 1
chevrotain.d.ts visitRepetition 0.4 1
chevrotain.d.ts visitRepetitionMandatory 0.4 1
chevrotain.d.ts visitRepetitionMandatoryWithSeparator 0.4 1
chevrotain.d.ts visitRepetitionWithSeparator 0.4 1
chevrotain.d.ts visitAlternation 0.4 1
chevrotain.d.ts visitTerminal 0.4 1
chevrotain.d.ts visitRule 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts serializeProduction 0.4 1
chevrotain.d.ts getSerializedGastProductions 0.3 1
chevrotain.d.ts canTokenTypeBeInsertedInRecovery 0.3 1
chevrotain.d.ts LA 0.3 1
chevrotain.d.ts isRecognitionException 0.3 1
chevrotain.d.ts performSelfAnalysis 0.2 1
chevrotain.d.ts reset 0.2 1
chevrotain.d.ts SKIP_TOKEN 0.2 1
chevrotain.d.ts clearCache 0.2 1
Methods of node_modules/chevrotain/lib folder and its subfolders (ordered by decreasing cognitive complexity)
File Method Cognitive complexity Cyclomatic complexity
chevrotain.d.ts RULE 1.9 1
chevrotain.d.ts OVERRIDE_RULE 1.9 1
chevrotain.d.ts OVERRIDE_RULE 1.7 1
chevrotain.d.ts RULE 1.7 1
chevrotain.d.ts OVERRIDE_RULE 1.7 1
chevrotain.d.ts validateGrammar 1.7 1
chevrotain.d.ts RULE 1.6 1
chevrotain.d.ts createTokenInstance 1.2 1
chevrotain.d.ts generateParserFactory 1.2 1
chevrotain.d.ts BACKTRACK 1 1
chevrotain.d.ts option 1 1
chevrotain.d.ts many 0.9 1
chevrotain.d.ts atLeastOne 0.9 1
chevrotain.d.ts OPTION 0.9 1
chevrotain.d.ts OPTION1 0.9 1
chevrotain.d.ts OPTION2 0.9 1
chevrotain.d.ts OPTION3 0.9 1
chevrotain.d.ts OPTION4 0.9 1
chevrotain.d.ts OPTION5 0.9 1
chevrotain.d.ts OPTION6 0.9 1
chevrotain.d.ts OPTION7 0.9 1
chevrotain.d.ts OPTION8 0.9 1
chevrotain.d.ts OPTION9 0.9 1
chevrotain.d.ts subrule 0.9 1
chevrotain.d.ts 0.9 0
chevrotain.d.ts 0.9 0
chevrotain.d.ts resolveGrammar 0.9 1
chevrotain.d.ts computeContentAssist 0.8 1
chevrotain.d.ts or 0.8 1
chevrotain.d.ts MANY 0.8 1
chevrotain.d.ts MANY1 0.8 1
chevrotain.d.ts MANY2 0.8 1
chevrotain.d.ts MANY3 0.8 1
chevrotain.d.ts MANY4 0.8 1
chevrotain.d.ts MANY5 0.8 1
chevrotain.d.ts MANY6 0.8 1
chevrotain.d.ts MANY7 0.8 1
chevrotain.d.ts MANY8 0.8 1
chevrotain.d.ts MANY9 0.8 1
chevrotain.d.ts AT_LEAST_ONE 0.8 1
chevrotain.d.ts AT_LEAST_ONE1 0.8 1
chevrotain.d.ts AT_LEAST_ONE2 0.8 1
chevrotain.d.ts AT_LEAST_ONE3 0.8 1
chevrotain.d.ts AT_LEAST_ONE4 0.8 1
chevrotain.d.ts AT_LEAST_ONE5 0.8 1
chevrotain.d.ts AT_LEAST_ONE6 0.8 1
chevrotain.d.ts AT_LEAST_ONE7 0.8 1
chevrotain.d.ts AT_LEAST_ONE8 0.8 1
chevrotain.d.ts AT_LEAST_ONE9 0.8 1
chevrotain.d.ts SUBRULE 0.8 1
chevrotain.d.ts SUBRULE1 0.8 1
chevrotain.d.ts SUBRULE2 0.8 1
chevrotain.d.ts SUBRULE3 0.8 1
chevrotain.d.ts SUBRULE4 0.8 1
chevrotain.d.ts SUBRULE5 0.8 1
chevrotain.d.ts SUBRULE6 0.8 1
chevrotain.d.ts SUBRULE7 0.8 1
chevrotain.d.ts SUBRULE8 0.8 1
chevrotain.d.ts SUBRULE9 0.8 1
chevrotain.d.ts subrule 0.8 1
chevrotain.d.ts SUBRULE 0.8 1
chevrotain.d.ts SUBRULE1 0.8 1
chevrotain.d.ts SUBRULE2 0.8 1
chevrotain.d.ts SUBRULE3 0.8 1
chevrotain.d.ts SUBRULE4 0.8 1
chevrotain.d.ts SUBRULE5 0.8 1
chevrotain.d.ts SUBRULE6 0.8 1
chevrotain.d.ts SUBRULE7 0.8 1
chevrotain.d.ts SUBRULE8 0.8 1
chevrotain.d.ts SUBRULE9 0.8 1
chevrotain.d.ts 0.8 0
chevrotain.d.ts generateParserModule 0.8 1
chevrotain.d.ts getBaseCstVisitorConstructor 0.7 1
chevrotain.d.ts getBaseCstVisitorConstructorWithDefaults 0.7 1
chevrotain.d.ts consume 0.7 1
chevrotain.d.ts OR 0.7 1
chevrotain.d.ts OR1 0.7 1
chevrotain.d.ts OR2 0.7 1
chevrotain.d.ts OR3 0.7 1
chevrotain.d.ts OR4 0.7 1
chevrotain.d.ts OR5 0.7 1
chevrotain.d.ts OR6 0.7 1
chevrotain.d.ts OR7 0.7 1
chevrotain.d.ts OR8 0.7 1
chevrotain.d.ts OR9 0.7 1
chevrotain.d.ts SUBRULE 0.7 1
chevrotain.d.ts SUBRULE1 0.7 1
chevrotain.d.ts SUBRULE2 0.7 1
chevrotain.d.ts SUBRULE3 0.7 1
chevrotain.d.ts SUBRULE4 0.7 1
chevrotain.d.ts SUBRULE5 0.7 1
chevrotain.d.ts SUBRULE6 0.7 1
chevrotain.d.ts SUBRULE7 0.7 1
chevrotain.d.ts SUBRULE8 0.7 1
chevrotain.d.ts SUBRULE9 0.7 1
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts 0.7 0
chevrotain.d.ts createSyntaxDiagramsCode 0.7 1
chevrotain.d.ts CONSUME 0.6 1
chevrotain.d.ts CONSUME1 0.6 1
chevrotain.d.ts CONSUME2 0.6 1
chevrotain.d.ts CONSUME3 0.6 1
chevrotain.d.ts CONSUME4 0.6 1
chevrotain.d.ts CONSUME5 0.6 1
chevrotain.d.ts CONSUME6 0.6 1
chevrotain.d.ts CONSUME7 0.6 1
chevrotain.d.ts CONSUME8 0.6 1
chevrotain.d.ts CONSUME9 0.6 1
chevrotain.d.ts tokenize 0.6 1
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts 0.6 0
chevrotain.d.ts serializeGrammar 0.6 1
chevrotain.d.ts assignOccurrenceIndices 0.6 1
chevrotain.d.ts ACTION 0.5 1
chevrotain.d.ts MANY_SEP 0.5 1
chevrotain.d.ts MANY_SEP1 0.5 1
chevrotain.d.ts MANY_SEP2 0.5 1
chevrotain.d.ts MANY_SEP3 0.5 1
chevrotain.d.ts MANY_SEP4 0.5 1
chevrotain.d.ts MANY_SEP5 0.5 1
chevrotain.d.ts MANY_SEP6 0.5 1
chevrotain.d.ts MANY_SEP7 0.5 1
chevrotain.d.ts MANY_SEP8 0.5 1
chevrotain.d.ts MANY_SEP9 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP1 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP2 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP3 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP4 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP5 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP6 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP7 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP8 0.5 1
chevrotain.d.ts AT_LEAST_ONE_SEP9 0.5 1
chevrotain.d.ts getNextPossibleTokenTypes 0.5 1
chevrotain.d.ts tokenMatcher 0.5 1
chevrotain.d.ts EMPTY_ALT 0.5 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts getGAstProductions 0.4 1
chevrotain.d.ts getTokenToInsert 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts performSelfAnalysis 0.4 1
chevrotain.d.ts createToken 0.4 1
chevrotain.d.ts tokenName 0.4 1
chevrotain.d.ts tokenLabel 0.4 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts visit 0.4 1
chevrotain.d.ts visitNonTerminal 0.4 1
chevrotain.d.ts visitFlat 0.4 1
chevrotain.d.ts visitOption 0.4 1
chevrotain.d.ts visitRepetition 0.4 1
chevrotain.d.ts visitRepetitionMandatory 0.4 1
chevrotain.d.ts visitRepetitionMandatoryWithSeparator 0.4 1
chevrotain.d.ts visitRepetitionWithSeparator 0.4 1
chevrotain.d.ts visitAlternation 0.4 1
chevrotain.d.ts visitTerminal 0.4 1
chevrotain.d.ts visitRule 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts 0.4 0
chevrotain.d.ts accept 0.4 1
chevrotain.d.ts serializeProduction 0.4 1
chevrotain.d.ts getSerializedGastProductions 0.3 1
chevrotain.d.ts canTokenTypeBeInsertedInRecovery 0.3 1
chevrotain.d.ts LA 0.3 1
chevrotain.d.ts isRecognitionException 0.3 1
chevrotain.d.ts performSelfAnalysis 0.2 1
chevrotain.d.ts reset 0.2 1
chevrotain.d.ts SKIP_TOKEN 0.2 1
chevrotain.d.ts clearCache 0.2 1