S5: Redundant .env gitignore patterns #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Smell
File:
web/.gitignoreand.gitignoreRoot
.gitignore:.envWeb
.gitignore:.env*The web pattern
.env*matches.env.local,.env.production,.env.stagingetc. The root.gitignorealready applies recursively to subdirectories. The web pattern is stricter but duplicative.Minor
No functional impact — both patterns work correctly. Just redundant config.
Suggestion
Remove
.env*from web.gitignoresince root.gitignorealready covers.env. Or keep both for explicitness — very low priority.