Skip to content

feat(check): add @param, @property, @returns validation to check command#20

Merged
Zih0 merged 12 commits intov0.0.2from
feat/check-command
Mar 13, 2026
Merged

feat(check): add @param, @property, @returns validation to check command#20
Zih0 merged 12 commits intov0.0.2from
feat/check-command

Conversation

@Zih0
Copy link
Collaborator

@Zih0 Zih0 commented Mar 13, 2026

  • Add a validation pipeline that checks @param, @property, and @returns JSDoc tags beyond the
    existing @public tag check

  • Validate @param/@returns for functions, @property for interfaces, type aliases, and
    object literals

  • Report specific errors: missing_public, missing_param, unused_param, missing_property,
    unused_property, missing_returns, invalid_returns

  • Dedicated validators per declaration type: FunctionValidator, InterfaceValidator,
    TypeAliasValidator, ObjectLiteralValidator

  • Update check command documentation (en/ko) to reflect new validation behavior

Zih0 and others added 12 commits March 12, 2026 22:58
* feat(check): add validation types and Validator base class

Add ValidationError/ValidationResult types and abstract Validator<T>
base class using Template Method pattern (validate -> collectErrors).

* feat(check): add JSDoc utility functions

Add EMPTY_PARSED_JSDOC constant and getJSDocParameterNames helper
for centralized JSDoc parameter name extraction with nested support.

* feat(check): add common validator utility functions

Add findMissingDocs, findUnusedDocs (difference-based detection)
and collectPropertySignaturePaths (recursive path collection).

* feat(check): add InterfaceValidator with tests

Validate interface property/method JSDoc coverage including nested
properties, optional/readonly modifiers. 13 test cases.

* fix: remove 'as const' assertion from missing and unused docs types

* refactor(check): unify findUnusedDocs parameter order

Swap findUnusedDocs(jsDocNames, validTargets) to
findUnusedDocs(validTargets, jsDocNames) so both find*Docs functions
take (codeSymbols, jsDocNames) consistently.

* fix(check): include interface methods in missing docs check
Add collectParameterPaths and collectPropertyAssignmentPaths utilities
for resolving nested dot-separated paths from function parameters and
object literal assignments. Add JSDoc to existing collectPropertySignaturePaths.
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docflow-docs Ready Ready Preview, Comment Mar 13, 2026 1:18pm

Request Review

@Zih0 Zih0 merged commit 58fe57d into v0.0.2 Mar 13, 2026
3 checks passed
@Zih0 Zih0 deleted the feat/check-command branch March 13, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant