S5: Redundant .env gitignore patterns #10

Open
opened 2026-06-05 10:22:09 +00:00 by sebse · 0 comments
Owner

Code Smell

File: web/.gitignore and .gitignore

Root .gitignore: .env
Web .gitignore: .env*

The web pattern .env* matches .env.local, .env.production, .env.staging etc. The root .gitignore already 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 .gitignore since root .gitignore already covers .env. Or keep both for explicitness — very low priority.

## Code Smell **File:** `web/.gitignore` and `.gitignore` Root `.gitignore`: `.env` Web `.gitignore`: `.env*` The web pattern `.env*` matches `.env.local`, `.env.production`, `.env.staging` etc. The root `.gitignore` already 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 `.gitignore` since root `.gitignore` already covers `.env`. Or keep both for explicitness — very low priority.
sebse added the code-smell label 2026-06-05 10:22:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sebse/factorio-signal-exporter#10