Cursor rule
.cursor/rules/code-review.mdcPR review themes — API docs, compatibility, errors, security, tests (CDA SDK)
Cursor rules
Quality
55/100
Scores the file, not the repository.Length
223 words
7 headings · 0 code blocksRepository
34
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Code review checklist (CDA JavaScript SDK)78Apply when reviewing changes to the **`contentstack`** npm package (Content Delivery API client).910## Public API & documentation1112- **JSDoc** updated for new or changed public methods/classes (params, return shape, examples), matching style in `src/core/contentstack.js` / `src/core/stack.js`.13- **`index.d.ts`** updated when TypeScript consumers would see different signatures or new exports.1415## Backward compatibility1617- Avoid breaking changes to exported function signatures, option objects, or default behavior without a major version rationale.18- If behavior changes, ensure **callers inside `src/`** and tests reflect the new contract.1920## Errors & safety2122- HTTP failures should continue to reject with a predictable shape from **`src/core/lib/request.js`** where applicable (**`error_message`**, **`error_code`**, **`errors`**, **`status`**, **`statusText`**).23- Do not log full **delivery_token**, **preview_token**, **management_token**, or **api_key** values.24- Respect **null/undefined** edge cases for optional API fields.2526## Dependencies & supply chain2728- New **dependencies** should be justified (size, maintenance, license).29- Lockfile and **`package.json`** version bumps should be minimal and reviewable.3031## Tests3233- **Jest** tests for new logic or regressions under **`test/`** (JS and/or **`test/typescript/`** as appropriate).34- Live stack tests must remain compatible with **`test/config.js`** env requirements; document new env needs in **`test/README.md`** or comments near the harness — never commit credentials.3536## Security & privacy3738- No hardcoded credentials; no accidental exposure of customer content in logs or error messages.39
Also in contentstack/contentstack-javascript
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-javascript.cursor/rules/contentstack-javascript-cda.mdc · 34 | Cursor rules | archdocs | 56/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/javascript.mdc · 34 | Cursor rules | testlint-formatstylearch+2 | 74/100 | 3 days ago | |
| contentstack/contentstack-javascript.cursor/rules/testing.mdc · 34 | Cursor rules | buildteststylearch+2 | 81/100 | 3 days ago | |
| contentstack/contentstack-javascriptAGENTS.md · 34 | AGENTS.md | buildtestlint-formatstyle+2 | 79/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 | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/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 |
