Skip to content

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Sep 21, 2025

Added JSDoc comments for static code analysis and better IDE support (IntelliSense param hints and inline documentation in VS Code is a big bonus).

lib/dirList.js already has JSDoc comments as well, so this makes it consistent across the codebase!

Checklist

@Uzlopak Uzlopak requested a review from Copilot September 21, 2025 18:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive JSDoc comments to the main index.js file to improve static code analysis and IDE support. The changes align with existing JSDoc practices in the codebase and enhance developer experience through better IntelliSense and documentation.

Key Changes

  • Added JSDoc type annotations for function parameters and return types
  • Included proper type imports for Fastify types and project-specific types
  • Enhanced inline documentation for complex function signatures
Comments suppressed due to low confidence (1)

index.js:500

  • The findIndexFile function is missing JSDoc documentation. Add JSDoc comments with parameter types and return type for consistency with other functions in the file.
function findIndexFile (pathname, root, indexFiles = ['index.html']) {

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Fdawgs Fdawgs merged commit cec0bef into main Sep 22, 2025
26 of 31 checks passed
@Fdawgs Fdawgs deleted the chore/jsdoc branch September 22, 2025 14:34
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.

2 participants