CRAP Complexity Coverage Location
2.00 2 4/4 (100.00%) eslint-plugin-crap/complexity.ts (L62 - L80)
                onCodePathEnd: ((codePath: any, node: any) => {
                    const complexity = complexities.pop()!;

                    /*
                     * This rule only evaluates complexity of functions, so "program" is excluded.
                     */
                    if (codePath.origin !== "function") {
                        return;
                    }

                    context.report({
                        node,
                        messageId: "function",
                        data: {
                            name: ASTUtils.getFunctionNameWithKind(node),
                            complexity,
                        },
                    });
                }) as any, // onCodePathEnd is not typed in @typescript-eslint/utils, neither is CodePath