@@ -16,6 +16,8 @@ import type { CoverageType } from './models.js';
1616import {
1717 createInitialCoverageTypesRecord ,
1818 getCoverageTypeFromKind ,
19+ logReport ,
20+ logSourceFiles ,
1921 singularCoverageType ,
2022} from './utils.js' ;
2123
@@ -29,7 +31,7 @@ type Node = {
2931
3032/**
3133 * Gets the variables information from the variable statements
32- * @param variableStatements - The variable statements to process
34+ * @param variableStatements The variable statements to process
3335 * @returns The variables information with the right methods to get the information
3436 */
3537export function getVariablesInformation (
@@ -54,15 +56,23 @@ export function getVariablesInformation(
5456
5557/**
5658 * Processes documentation coverage for TypeScript files in the specified path
57- * @param config - The configuration object containing patterns to include for documentation analysis
59+ * @param config The configuration object containing patterns to include for documentation analysis
5860 * @returns Object containing coverage statistics and undocumented items
5961 */
6062export function processJsDocs (
6163 config : JsDocsPluginTransformedConfig ,
6264) : Record < CoverageType , FileCoverage [ ] > {
6365 const project = new Project ( ) ;
6466 project . addSourceFilesAtPaths ( config . patterns ) ;
65- return getDocumentationReport ( project . getSourceFiles ( ) ) ;
67+ const sourceFiles = project . getSourceFiles ( ) ;
68+
69+ logSourceFiles ( sourceFiles , config ) ;
70+
71+ const report = getDocumentationReport ( sourceFiles ) ;
72+
73+ logReport ( report ) ;
74+
75+ return report ;
6676}
6777
6878export function getAllNodesFromASourceFile ( sourceFile : SourceFile ) {
@@ -80,7 +90,7 @@ export function getAllNodesFromASourceFile(sourceFile: SourceFile) {
8090
8191/**
8292 * Gets the documentation coverage report from the source files
83- * @param sourceFiles - The source files to process
93+ * @param sourceFiles The source files to process
8494 * @returns The documentation coverage report
8595 */
8696export function getDocumentationReport (
@@ -101,8 +111,8 @@ export function getDocumentationReport(
101111
102112/**
103113 * Gets the coverage from all nodes of a file
104- * @param nodes - The nodes to process
105- * @param filePath - The file path where the nodes are located
114+ * @param nodes The nodes to process
115+ * @param filePath The file path where the nodes are located
106116 * @returns The coverage report for the nodes
107117 */
108118function getCoverageFromAllNodesOfFile ( nodes : Node [ ] , filePath : string ) {
@@ -145,7 +155,7 @@ function getCoverageFromAllNodesOfFile(nodes: Node[], filePath: string) {
145155
146156/**
147157 * Gets the nodes from a class
148- * @param classNodes - The class nodes to process
158+ * @param classNodes The class nodes to process
149159 * @returns The nodes from the class
150160 */
151161export function getClassNodes ( classNodes : ClassDeclaration [ ] ) {
0 commit comments