Enforce LF line endings with editorconfig and gitattributes #57
Reference in New Issue
Block a user
Delete Branch "chore/enforce-linux-line-endings"
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?
User description
Add .gitattributes and .editorconfig to enforce LF line endings. Update devcontainer settings.
PR Type
Enhancement
Description
Add .gitattributes to enforce LF line endings
Introduce .editorconfig with LF and formatting rules
Update devcontainer.json to set files.eol to "\n"
Fix git hooks path in .devcontainer/setup.sh
File Walkthrough
setup.sh
Update git hooks chown path.devcontainer/setup.sh
devcontainer.json
Enforce LF in devcontainer settings.devcontainer/devcontainer.json
.editorconfig
Add .editorconfig for LF endings.editorconfig
.gitattributes
Add .gitattributes for LF enforcement.gitattributes
9ae6ada818to4316906497chore: enforce linux line endingsto Enforce LF line endings with editorconfig and gitattributesPR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Hardcoded path
The git hooks path is hardcoded to
/workspaces/screeps-deploy-action/.git/hooks, which may break if the workspace folder name or mount point changes. Consider using a dynamic path (e.g.,$(pwd)/.git/hooksor an environment variable) to improve portability.PR Code Suggestions ✨