Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/api/v2/scripts/docker-start.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** Documents apps/api/v2/scripts/docker-start.ts module purpose and public usage context */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Rewrite the module comment to explain intent, not the change.

This comment describes what was added rather than why this script exists / when to use it. Please replace it with intent-focused module docs.

Proposed doc update
-/** Documents apps/api/v2/scripts/docker-start.ts module purpose and public usage context */
+/**
+ * Boots local API dependencies in Docker for development startup.
+ * Prefers `docker compose` and falls back to `docker-compose` for compatibility.
+ */

As per coding guidelines, "Only add code comments that explain why, not what" and "Never add comments that simply restate what the code does".

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/** Documents apps/api/v2/scripts/docker-start.ts module purpose and public usage context */
/**
* Boots local API dependencies in Docker for development startup.
* Prefers `docker compose` and falls back to `docker-compose` for compatibility.
*/
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/api/v2/scripts/docker-start.ts` at line 1, Replace the current module
header in apps/api/v2/scripts/docker-start.ts (the top-of-file comment) with an
intent-focused doc that explains why this script exists and when to run it
(e.g., purpose: start the API in a Docker-based dev/test environment,
prerequisites, and expected effect), rather than describing what was changed or
added; target the module-level comment only so callers and maintainers
understand the script's context and intended usage.

import { execSync } from "node:child_process";

function checkCommandExists(command: string): boolean {
Expand Down
Loading