Prompt
Variable and parameter names should be explicit about their purpose and consistent with established naming patterns in the codebase. Avoid ambiguous or generic names that could be confusing in context.
Make names explicit and descriptive:
- Use
versionActionsVersioninstead ofversionwhen the context involves multiple version concepts - Use
tasksExecutionIdorexecutionIdinstead of generictaskIdwhen referring to execution identifiers - Use
getAtomizedTaskEnvVarsinstead ofgetOutputEnvVarswhen the function has a specific scope
Follow established naming conventions:
- Maintain consistent casing patterns (e.g.,
releaseTagPatternStrictPreIdnotreleaseTagPatternStrictPreid) - Follow existing formatting conventions (e.g., use
is_goldennotisGoldenwhen other properties use underscores)
Example:
// Avoid: Generic and potentially confusing
const taskId = hashArray([...process.argv, Date.now().toString()]);
const version = getVersion();
// Prefer: Explicit and descriptive
const tasksExecutionId = hashArray([...process.argv, Date.now().toString()]);
const versionActionsVersion = getVersionActionsVersion();