Skip to content

Commit 0530a5a

Browse files
committed
chore: cleanup doc comments
1 parent 6a36ea1 commit 0530a5a

12 files changed

Lines changed: 37 additions & 37 deletions

src/lib/changeset_generator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ const calculate_required_bump = (
9595
* and categorized list of breaking vs regular updates. Output format
9696
* matches changesets CLI for consistency.
9797
*
98-
* @param package_name package receiving the dependency updates
99-
* @param updates list of dependency changes with version info
100-
* @param bump_type required bump type (calculated from breaking changes)
98+
* @param package_name - package receiving the dependency updates
99+
* @param updates - list of dependency changes with version info
100+
* @param bump_type - required bump type (calculated from breaking changes)
101101
* @returns markdown content ready to write to .changeset/*.md file
102102
*/
103103
export const generate_changeset_content = (

src/lib/changeset_reader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export interface ChangesetInfo {
3737
*
3838
* Summary of changes
3939
*
40-
* @param content changeset markdown with YAML frontmatter
41-
* @param filename optional filename for error reporting context
40+
* @param content - changeset markdown with YAML frontmatter
41+
* @param filename - optional filename for error reporting context
4242
* @returns parsed changeset info or null if invalid format
4343
*/
4444
export const parse_changeset_content = (

src/lib/dependency_graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class DependencyGraph {
127127
* Delegates to `@fuzdev/fuz_util/sort.js` for the sorting algorithm.
128128
* Throws if cycles detected.
129129
*
130-
* @param exclude_dev if true, excludes dev dependencies to break cycles.
130+
* @param exclude_dev - If true, excludes dev dependencies to break cycles.
131131
* Publishing uses exclude_dev=true to handle circular dev deps.
132132
* @returns array of package names in dependency order (dependencies before dependents)
133133
* @throws {Error} if circular dependencies detected in included dependency types

src/lib/fetch_repo_data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import type {LocalRepo} from './local_repo.js';
1717
* Error handling: Logs fetch failures but continues processing remaining repos.
1818
* Repos with failed fetches will have `null` for check_runs or pull_requests.
1919
*
20-
* @param delay milliseconds between API requests (default: 33ms)
21-
* @param cache optional cache from fuz_util's fetch.js for response memoization
20+
* @param delay - milliseconds between API requests (default: 33ms)
21+
* @param cache - optional cache from fuz_util's fetch.js for response memoization
2222
* @returns array of Repo objects with GitHub metadata attached
2323
*/
2424
export const fetch_repo_data = async (

src/lib/fs_fetch_value_cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export interface FetchCache {
2525
* Uses `structuredClone` to track changes - only writes to disk if data modified.
2626
* Formatted with Prettier before writing for version control friendliness.
2727
*
28-
* @param name cache filename (without .json extension)
29-
* @param dir cache directory (defaults to `.gro/build/fetch/`)
28+
* @param name - cache filename (without .json extension)
29+
* @param dir - cache directory (defaults to `.gro/build/fetch/`)
3030
* @returns cache object with Map-based data and save() method
3131
*/
3232
export const create_fs_fetch_value_cache = async (

src/lib/gitops_task_helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ export interface GetGitopsReadyOptions {
5353
* - Config `repos_dir` setting
5454
* - `DEFAULT_REPOS_DIR` constant
5555
*
56-
* @param options.git_ops for testing (defaults to real git operations)
57-
* @param options.npm_ops for testing (defaults to real npm operations)
58-
* @param options.parallel whether to load repos in parallel (default: true)
59-
* @param options.concurrency max concurrent repo loads (default: 5)
56+
* @param options.git_ops - for testing (defaults to real git operations)
57+
* @param options.npm_ops - for testing (defaults to real npm operations)
58+
* @param options.parallel - whether to load repos in parallel (default: true)
59+
* @param options.concurrency - max concurrent repo loads (default: 5)
6060
* @returns initialized config and fully loaded repos ready for operations
6161
* @throws {TaskError} if config loading or repo resolution fails
6262
*/

src/lib/graph_validation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export interface GraphValidationResult {
3232
* Shared utility for building dependency graph, detecting cycles, and computing publishing order.
3333
* This centralizes logic that was duplicated across multi_repo_publisher, publishing_plan, and gitops_analyze.
3434
*
35-
* @param options.throw_on_prod_cycles whether to throw an error if production cycles are detected (default: true)
36-
* @param options.log_cycles whether to log cycle information (default: true)
37-
* @param options.log_order whether to log publishing order (default: true)
35+
* @param options.throw_on_prod_cycles - whether to throw an error if production cycles are detected (default: true)
36+
* @param options.log_cycles - whether to log cycle information (default: true)
37+
* @param options.log_order - whether to log publishing order (default: true)
3838
* @returns graph validation result with graph, publishing order, and detected cycles
3939
* @throws {TaskError} if production cycles detected and throw_on_prod_cycles is true
4040
*/

src/lib/npm_install_helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const is_etarget_error = (message: string, stderr: string): boolean => {
3434
* npm's local cache may still have stale "404" metadata. This healing
3535
* strategy clears the cache to force fresh metadata fetch.
3636
*
37-
* @param repo - The repository to install dependencies for
38-
* @param ops - Gitops operations (for dependency injection)
39-
* @param log - Optional logger
37+
* @param repo - the repository to install dependencies for
38+
* @param ops - gitops operations (for dependency injection)
39+
* @param log - optional logger
4040
* @throws Error if install fails (with details about cache healing attempts)
4141
*/
4242
export const install_with_cache_healing = async (

src/lib/npm_registry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ export const check_package_available = async (
4848
* Critical for multi-repo publishing: ensures published packages are available
4949
* before updating dependent packages.
5050
*
51-
* @param options.max_attempts max poll attempts (default 30)
52-
* @param options.initial_delay starting delay in ms (default 1000)
53-
* @param options.max_delay max delay between attempts (default 60000)
54-
* @param options.timeout total timeout in ms (default 300000 = 5min)
51+
* @param options.max_attempts - max poll attempts (default 30)
52+
* @param options.initial_delay - starting delay in ms (default 1000)
53+
* @param options.max_delay - max delay between attempts (default 60000)
54+
* @param options.timeout - total timeout in ms (default 300000 = 5min)
5555
* @throws {Error} if timeout reached or max attempts exceeded
5656
*/
5757
export const wait_for_package = async (

src/lib/repo_ops.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export interface RepoPath {
8383
* Get repo paths from gitops config without full git sync.
8484
* Lighter weight than `get_gitops_ready()` - just resolves paths.
8585
*
86-
* @param config_path Path to gitops.config.ts (defaults to `./gitops.config.ts`)
87-
* @returns Array of repo info with name, path, and url
86+
* @param config_path - path to gitops.config.ts (defaults to `./gitops.config.ts`)
87+
* @returns array of repo info with name, path, and url
8888
*/
8989
export const get_repo_paths = async (config_path?: string): Promise<Array<RepoPath>> => {
9090
const resolved_config_path = resolve(config_path ?? GITOPS_CONFIG_PATH_DEFAULT);
@@ -152,8 +152,8 @@ export const should_exclude_path = (file_path: string, options?: WalkOptions): b
152152
* Walk files in a directory, respecting common exclusions.
153153
* Yields absolute paths to files (and optionally directories).
154154
*
155-
* @param dir Directory to walk
156-
* @param options Walk options for exclusions and filtering
155+
* @param dir - directory to walk
156+
* @param options - walk options for exclusions and filtering
157157
*/
158158
export async function* walk_repo_files(
159159
dir: string,

0 commit comments

Comments
 (0)