|
1 | | -# ========== CANONICAL (auto-synced, do not edit) ========== |
2 | | -# This file is generated - do not edit by hand. |
| 1 | +# Generated by instituteci. Do not edit. |
| 2 | +# Canonical Swift package shape policy: 4 (absolute allowlist) |
3 | 3 |
|
4 | | -*~ |
5 | | -.DS_Store |
6 | | - |
7 | | -Package.resolved |
8 | | -DerivedData/ |
9 | | -Thumbs.db |
10 | | - |
11 | | -# Top-level entries (opt-in only) |
12 | | -# First ignore everything at root; then whitelist specific folders, |
13 | | -# files, and dotfiles. Whitelists come AFTER /* so they take effect. |
14 | 4 | /* |
15 | | -!/Sources/ |
16 | | -!/Tests/ |
17 | | -!/Benchmarks/ |
18 | | -!/Experiments/ |
19 | | -!/Research/ |
20 | | -!/Skills/ |
21 | | -!/Scripts/ |
22 | | -!/.github/ |
| 5 | +!/.github |
| 6 | +!/Sources |
| 7 | +!/Tests |
23 | 8 | !/Package.swift |
24 | | -!/Package@swift-*.swift |
25 | | -!/Lint.swift |
26 | | -!/Lint/ |
27 | | -!/LICENSE |
| 9 | +!/.spi.yml |
28 | 10 | !/LICENSE.md |
29 | 11 | !/README.md |
30 | 12 | !/.gitignore |
31 | | -!/.spi.yml |
32 | | -!/.swift-format |
33 | | -!/.swiftformat |
34 | | -!/.swiftlint.yml |
35 | | -!/.swiftlint/ |
36 | | - |
37 | | -# Documentation (opt-in for whitelisted .md files and .docc catalogs only) |
38 | | -# Blocks all .md files by default to prevent AI-generated content from being committed |
39 | | -*.md |
40 | | -!README.md |
41 | | -!LICENSE |
42 | | -!LICENSE.md |
43 | | -!CHANGELOG.md |
44 | | -!CONTRIBUTING.md |
45 | | -!CODE_OF_CONDUCT.md |
46 | | -!SECURITY.md |
47 | | -!CLAUDE.md |
48 | | -!**/*.docc/**/*.md |
49 | | -!**/Research/**/*.md |
50 | | -!**/Experiments/**/*.md |
51 | | -!**/Skills/**/*.md |
52 | | -!**/.github/**/*.md |
53 | | - |
54 | | -# Package insights are non-normative working logs accumulating through |
55 | | -# reflections-processing. They stay on disk for the author but do not ship. |
56 | | -**/_Package-Insights.md |
57 | | - |
58 | | -# Research working-artifact prevention: underscore-prefixed and prompt dirs |
59 | | -# are non-canonical and must not ship. _archived/ is the one allowed |
60 | | -# exception (holds SUPERSEDED research per [META-005]). |
61 | | -/Research/_*/ |
62 | | -!/Research/_archived/ |
63 | | -/Research/prompts/ |
64 | | - |
65 | | -*.pdf |
66 | | - |
67 | | -# SwiftLint |
68 | | -**/.swiftlint/RemoteConfigCache |
69 | | - |
70 | | -# Swift Package Manager |
71 | | -.build/ |
72 | | -.swiftpm/ |
73 | | -.benchmarks/ |
74 | | - |
75 | | -# DocC build artifacts (generated by docc convert/preview) |
76 | | -.docc-build/ |
77 | | - |
78 | | -# Tool state: dot-directories are denied at EVERY depth, not just the root. |
79 | | -# The /* whitelist above only reaches depth 1, so a tool that writes into a |
80 | | -# whitelisted directory — Sources/.swift-lint/, Tests/.cache/ — was tracked by |
81 | | -# default. Every tool-state directory in this ecosystem is a dot-directory and |
82 | | -# no legitimate work ever is, which makes this the one nested deny that costs |
83 | | -# nothing: whitelisting by extension instead would silently untrack test |
84 | | -# fixtures and .docc assets, and silent untracking is how work gets lost. |
85 | | -# /.github is the sole legitimate dot-directory and is re-included after. |
86 | | -**/.*/ |
87 | | -!/.github/ |
88 | | - |
89 | | -# ========== END CANONICAL ========== |
90 | | - |
91 | | -# ========== LOCAL OVERRIDES ========== |
92 | | -# Package-specific rules below (managed by sync-gitignore.sh) |
93 | 13 |
|
| 14 | +/.github/* |
| 15 | +!/.github/workflows |
| 16 | +!/.github/metadata.yaml |
| 17 | +!/.github/FUNDING.yml |
| 18 | +/.github/workflows/* |
| 19 | +!/.github/workflows/ci.yml |
| 20 | + |
| 21 | +/Sources/** |
| 22 | +!/Sources/**/ |
| 23 | +!/Sources/**/*.swift |
| 24 | +!/Sources/**/*.docc/** |
| 25 | +/Tests/** |
| 26 | +!/Tests/**/ |
| 27 | +!/Tests/**/*.swift |
0 commit comments