Skip to content

Commit 51cbd9b

Browse files
committed
Sync .gitignore to canonical with marker-based sections
1 parent 00d6bca commit 51cbd9b

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.gitignore

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
# ========== CANONICAL (auto-synced, do not edit) ==========
2+
# Source: swift-institute
3+
# Sync: Scripts/sync-gitignore.sh or manual
4+
15
*~
6+
.DS_Store
27

38
Package.resolved
49
DerivedData/
@@ -12,6 +17,16 @@ Thumbs.db
1217
!/.swift-format
1318
!/.swiftformat
1419
!/.swiftlint.yml
20+
!/.swiftlint/
21+
22+
# Top-level entries (opt-in only)
23+
# First ignore all, then whitelist specific folders and files
24+
/*
25+
!/Sources/
26+
!/Tests/
27+
!/.github/
28+
!/Package.swift
29+
!/LICENSE.md
1530

1631
# Documentation (opt-in for whitelisted .md files and .docc catalogs only)
1732
# Blocks all .md files by default to prevent AI-generated content from being committed
@@ -24,7 +39,16 @@ Thumbs.db
2439
!SECURITY.md
2540
!**/*.docc/**/*.md
2641

42+
*.pdf
43+
44+
# SwiftLint
45+
**/.swiftlint/RemoteConfigCache
2746

28-
# SwiftLint Remote Config Cache
29-
.swiftlint/RemoteConfigCache
47+
# Swift Package Manager
3048
.build/
49+
.swiftpm/
50+
51+
# ========== END CANONICAL ==========
52+
53+
# ========== LOCAL OVERRIDES ==========
54+
# Package-specific rules below (preserved during sync)

0 commit comments

Comments
 (0)