ECC / rules
affaan-m/ECC/.cursor/rules/swift-hooks.md
Swift hooks extending common rules
Cursor rule246k starsChanged 30 days ago
--- description: "Swift hooks extending common rules" globs: ["**/*.swift", "**/Package.swift"] alwaysApply: false --- # Swift Hooks > This file extends the common hooks rule with Swift specific content. ## PostToolUse Hooks Configure in `~/.claude/settings.json`: - **SwiftFormat**: Auto-format `.swift` files after edit - **SwiftLint**: Run lint checks after editing `.swift` files - **swift build**: Type-check modified packages after edit ## Warning Flag `print()` statements -- use `os.Logger` or structured logging instead for production code.
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

