Skip to content

Commit

Permalink
fix: create CyclomaticComplexity converter
Browse files Browse the repository at this point in the history
  • Loading branch information
ytetsuro committed Aug 14, 2022
1 parent 99de01f commit 21bfa15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ASTNode } from '../ASTNode';
import { CognitiveComplexityCountableNode } from '../CognitiveComplexityCountableNode';

@injectable()
export class Complexity {
export class CognitiveComplexity {
convert(astNode: ASTNode) {
return new CognitiveComplexityCountableNode(astNode);
}
Expand Down
10 changes: 10 additions & 0 deletions src/Language/PHP/Converter/CyclomaticComplexity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { injectable } from 'inversify';
import { ASTNode } from '../ASTNode';
import { CyclomaticComplexityCountableNode } from '../CyclomaticComplexityCountableNode';

@injectable()
export class CyclomaticComplexity {
convert(astNode: ASTNode) {
return new CyclomaticComplexityCountableNode(astNode);
}
}

0 comments on commit 21bfa15

Please sign in to comment.