DevKeychain is a Swift package that provides a modern, type-safe interface to Apple’s keychain services.
swift buildandswift testbuild the package and run its unit tests.- Xcode test plans in
Build Support/Test Plans/run the tests with coverage, as CI does. The DevKeychainApp test plan runs the integration tests inApp/Tests/against the real keychain.
-
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:
Also:
- Document and test every public API, and keep test coverage above 99%.
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.