DevConfiguration is a type-safe configuration wrapper built on Apple’s
swift-configuration. It adds config variables, access reporting through DevFoundation’s
EventBus, extensible metadata, and a SwiftUI editor for overriding values at runtime.
swift buildandswift testbuild and test the package.- Xcode test plans in
Build Support/Test Plans/run the tests with coverage, as CI does. - The example app in
App/builds with Xcode.
-
Follow the Markdown Style Guide for all Markdown.
-
Use typographic quotes and apostrophes, not straight ones, in all Markdown, all code documentation (doc comments and standalone comments), and all user-facing strings:
- Apostrophes: ’ (U+2019), as in “it’s”
- Single quotes: ‘ (U+2018) and ’ (U+2019)
- Double quotes: “ (U+201C) and ” (U+201D)
Straight quotes (
'and") are still correct in code itself: string literal delimiters, code spans, code blocks, identifiers, and configuration files.
Never credit an agent or other code generation tool. Don’t add Co-Authored-By trailers or
“Generated with” lines to commits or pull requests, and don’t name an agent in file headers,
comments, or documentation. File headers name the git user. The programmer who uses a tool is
accountable for the changes it helped make.
A commit message is a short summary of what the commit does, then a blank line and a bulleted list of the changes, close to what a changelog would say. Messages are plain text with lines of 72 characters or fewer. A pull request uses its commit message: the title is the summary, and the body is the bullets.
Add an entry to CHANGELOG.md for changes that affect the library’s users.
Follow these guides before writing or reviewing Swift:
- Dependency Injection
- MVVM for SwiftUI and its background
- Swift Style Guide
- Testing Guidelines
- Test Mocks
- Async Test Patterns
Also:
- Document and test every public API, and keep test coverage above 99%.
- SwiftUI views don’t have automated tests; their view models do.
Tools/formatformats Swift with swift-format and Markdown with rumdl, in place.Tools/lintchecks both, plus comment line length, which swift-format doesn’t check.- Configuration is in
.swift-format(120-character lines) and.rumdl.toml(100-character lines for Markdown). Tools/install-git-hooksinstalls a pre-push hook that runsTools/lint.
Run Tools/lint before considering a change done.