@@ -6,17 +6,21 @@ import { missingChangeVersion } from './rules/missing-change-version.mjs';
66import { missingIntroducedIn } from './rules/missing-introduced-in.mjs' ;
77
88/**
9- * Lint issues in ApiDocMetadataEntry entries
9+ * Creates a linter instance to validate ApiDocMetadataEntry entries
1010 *
1111 * @param {boolean } dryRun Whether to run the linter in dry-run mode
1212 */
1313const createLinter = dryRun => {
1414 /**
15+ * Lint issues found during validations
16+ *
1517 * @type {Array<import('./types.d.ts').LintIssue> }
1618 */
1719 const issues = [ ] ;
1820
1921 /**
22+ * Lint rules to validate the entries against
23+ *
2024 * @type {Array<import('./types.d.ts').LintRule> }
2125 */
2226 const rules = [
@@ -26,6 +30,8 @@ const createLinter = dryRun => {
2630 ] ;
2731
2832 /**
33+ * Validates a ApiDocMetadataEntry entry against all defined rules
34+ *
2935 * @param {ApiDocMetadataEntry } entry
3036 * @returns {void }
3137 */
@@ -40,6 +46,8 @@ const createLinter = dryRun => {
4046 } ;
4147
4248 /**
49+ * Validates an array of ApiDocMetadataEntry entries against all defined rules
50+ *
4351 * @param {ApiDocMetadataEntry[] } entries
4452 * @returns {void }
4553 */
@@ -50,7 +58,10 @@ const createLinter = dryRun => {
5058 } ;
5159
5260 /**
53- * @param {keyof reporters } reporterName
61+ * Reports found issues using the specified reporter
62+ *
63+ * @param {keyof typeof reporters } reporterName Reporter name
64+ * @returns {void }
5465 */
5566 const report = reporterName => {
5667 if ( dryRun ) {
@@ -65,7 +76,7 @@ const createLinter = dryRun => {
6576 } ;
6677
6778 /**
68- * Returns whether there are any issues with a level of 'error'
79+ * Checks if any error-level issues were found during linting
6980 *
7081 * @returns {boolean }
7182 */
0 commit comments