Skip to content

Commit 1703bd2

Browse files
authored
chore: standardize repository configuration (#12)
Apply the approved shared `.gitignore` baseline and retain approved repository-specific rules. Add EditorConfig defaults for LF endings and final newlines, preserve existing project settings, and require spaces for YAML. Enforce LF text attributes while preserving binary handling, saved-reference protections, and existing archive exclusions. Codex verified ignore behavior, effective EditorConfig settings, text and binary attributes, unchanged archive exclusions for every tracked path, and `git diff --check`. --- Investigated and written by [Codex](https://openai.com/codex/) on behalf of William Jacoby ([bonelifer](https://github.com/bonelifer)).
1 parent 7bd2a03 commit 1703bd2

3 files changed

Lines changed: 140 additions & 1 deletion

File tree

‎.editorconfig‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# EditorConfig
2+
# https://editorconfig.org/
3+
#
4+
# Consistent formatting for project files.
5+
6+
root = true
7+
8+
[*]
9+
end_of_line = lf
10+
insert_final_newline = true
11+
12+
[*.{php,js,css,json,html,htm,txt,md,yml,yaml,xml,twig}]
13+
charset = utf-8
14+
indent_style = tab
15+
indent_size = 4
16+
trim_trailing_whitespace = true
17+
18+
[*.{txt,md,yml,yaml}]
19+
trim_trailing_whitespace = false
20+
21+
[*.{yml,yaml}]
22+
indent_style = space

‎.gitattributes‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Normalize line endings to LF in the repository
1+
# Shared line endings and binary files
22
* text=auto eol=lf
33

4+
# Normalize line endings to LF in the repository
5+
46
# Never convert line endings in binary files
57
*.png binary
68
*.jpg binary

‎.gitignore‎

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# =========================
2+
# Build and Dependencies
3+
# =========================
4+
5+
/build/
6+
/vendor/
7+
8+
# =========================
9+
# Ghostwriter
10+
# =========================
11+
12+
# Ghostwriter backup markdown files
13+
*.md.backup
14+
15+
# =========================
16+
# Windows
17+
# =========================
18+
19+
# Windows image file caches
20+
Thumbs.db
21+
ehthumbs.db
22+
23+
# Folder configuration file
24+
Desktop.ini
25+
26+
# Recycle Bin used on file shares
27+
$RECYCLE.BIN/
28+
29+
# =========================
30+
# macOS
31+
# =========================
32+
33+
.DS_Store
34+
.AppleDouble
35+
.LSOverride
36+
37+
# Custom folder icons
38+
Icon?
39+
40+
# Thumbnails
41+
._*
42+
43+
# Files that might appear on external disks
44+
.Spotlight-V100
45+
.Trashes
46+
47+
# Directories potentially created on remote AFP shares
48+
.AppleDB
49+
.AppleDesktop
50+
Network Trash Folder
51+
Temporary Items
52+
.apdisk
53+
54+
# =========================
55+
# PHP / Composer
56+
# =========================
57+
58+
vendor
59+
composer.phar
60+
61+
# =========================
62+
# Python
63+
# =========================
64+
65+
__pycache__/
66+
*.py[cod]
67+
.venv/
68+
venv/
69+
.pytest_cache/
70+
.mypy_cache/
71+
.ruff_cache/
72+
.tox/
73+
.nox/
74+
.coverage
75+
.coverage.*
76+
htmlcov/
77+
78+
# =========================
79+
# JavaScript / Node
80+
# =========================
81+
82+
node_modules/
83+
npm-debug.log*
84+
yarn-debug.log*
85+
yarn-error.log*
86+
.pnpm-debug.log*
87+
88+
# =========================
89+
# Local environment and editor files
90+
# =========================
91+
92+
.env
93+
.env.*
94+
!.env.example
95+
!.env.*.example
96+
*~
97+
*.backup
98+
*.bk
99+
*.bak
100+
*.swp
101+
*.swo
102+
103+
# =========================
104+
# Local review output
105+
# =========================
106+
107+
output*.txt
108+
*-review-*.md
109+
110+
# IDE files
111+
.idea/
112+
*.iws
113+
.idea_modules/
114+
atlassian-ide-plugin.xml
115+
/nbproject/

0 commit comments

Comments
 (0)