Commented-out code should be removed immediately rather than committed to the codebase. Keeping commented code creates confusion, adds unnecessary noise, and makes the codebase harder to maintain. If code is no longer needed, delete it - version control systems will preserve the history if it needs to be referenced later.
Commented-out code should be removed immediately rather than committed to the codebase. Keeping commented code creates confusion, adds unnecessary noise, and makes the codebase harder to maintain. If code is no longer needed, delete it - version control systems will preserve the history if it needs to be referenced later.
Example of what to avoid:
export function useDocumentTitle() {
// const settingsStore = useSettingsStore();
// const { releaseChannel } = settingsStore.settings;
// const suffix = !releaseChannel || releaseChannel === 'stable'
// ? 'n8n'
// : `n8n[${releaseChannel.toUpperCase()}]`;
}
Instead, either:
This keeps the codebase clean, current, and easier to understand for all developers.
Enter the URL of a public GitHub repository