Cursor rule
.cursor/rules/ios.mdcObjective-C standards and Contentstack iOS SDK layout for CDA sources
Cursor rules
Quality
52/100
Scores the file, not the repository.Length
268 words
7 headings · 0 code blocksRepository
3
— · pushed 5 days agoLast changed
3 days ago
First indexed 3 days ago.123456789# iOS SDK Standards – Contentstack iOS CDA SDK1011Apply these conventions when editing Objective-C code in the SDK (not test targets).1213## Language and runtime1415- **Objective-C** with Apple’s modern conventions: use `NS_ASSUME_NONNULL_BEGIN` / `END` (or explicit `nullable` / `nonnull`) on public headers where the project already does.16- **Swift consumers** import the module; avoid breaking Swift names without good reason (Objective-C names map to Swift automatically).1718## Layout and modules1920- **Public API** lives under **`Contentstack/`** (headers shipped via `public_header_files` in the podspec).21- **Internal implementation** lives under **`ContentstackInternal/`** (HTTP, URLs, constants, extensions). Do not expose internal headers as public API without an explicit decision.22- **Vendored / shared code** under **`ThirdPartyExtension/`** (e.g. `CSURLSessionManager`, markdown, ISO8601). Keep changes minimal and consistent with upstream vendoring policy.2324## Naming2526- **Classes:** Prefix or unprefixed names as established in this SDK (`Stack`, `Config`, `CSIOCoreHTTPNetworking`, etc.); do not introduce conflicting generic names.27- **Methods:** Objective-C style, descriptive selectors; match existing patterns for “fetch”, “callback”, “withConfig:”, etc.28- **Categories:** Use project prefixes on category methods to avoid collisions (`cs_` or existing project convention).29- **Test classes:** See **testing.mdc** (`*Test` XCTest case naming).3031## Headers3233- Public declarations belong in **`Contentstack/*.h`**; import umbrella patterns consistent with **`Contentstack.h`**.34- Use forward declarations (`@class`) in headers when possible to reduce compile coupling.3536## Documentation3738- Public API should retain or extend the existing block-comment style in headers (parameters, return value, Obj-C / Swift snippets where already used).3940## General4142- Prefer explicit error handling over silent failure when adding new async or network paths.43- Match existing memory management (ARC); avoid introducing non-ARC patterns.44
Also in contentstack/contentstack-ios
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| contentstack/contentstack-ios.cursor/rules/code-review.mdc · 3 | Cursor rules | testgitsecuritydependencies+1 | 48/100 | 3 days ago | |
| contentstack/contentstack-ios.cursor/rules/contentstack-ios-cda.mdc · 3 | Cursor rules | styledo-not | 55/100 | 3 days ago | |
| contentstack/contentstack-ios.cursor/rules/testing.mdc · 3 | Cursor rules | teststylearchtesting-strategy+1 | 63/100 | 3 days ago | |
| contentstack/contentstack-iosAGENTS.md · 3 | AGENTS.md | do-notagent-behaviour | 63/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 3 days ago |
