Cursor rule
.cursor/rules/function-naming-comments.mdc[object Object]
Cursor rules
Quality
49/100
Scores the file, not the repository.Length
189 words
4 headings · 1 code blocksRepository
0
— · pushed 437 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Function Naming and Line Commenting Convention78This rule applies specifically to `concepts/cursor_rules/cursor_rules.js` and enforces the following conventions:910## Function Naming111. All function names must be abbreviated versions of their intended purpose122. Abbreviations should be clear enough to understand the function's purpose133. Use camelCase for multi-word abbreviations1415Examples:16- `calculateTotal` → `calcTot`17- `validateUserInput` → `valUsrInp`18- `processDataStream` → `procDStr`1920## Line Comments211. Every line of code must be followed by an explanatory comment222. Comments should be placed on the same line after the code233. Use `//` for inline comments244. Comments should explain the purpose of the line, not just restate the code2526Example:27```javascript28const calcTot = (nums) => { // Calculate sum of array elements29 let sum = 0; // Initialize sum accumulator30 nums.forEach(n => { // Iterate through each number31 sum += n; // Add current number to running total32 });33 return sum; // Return final calculated sum34};35```3637## Enforcement38This rule must be strictly followed for all code in `concepts/cursor_rules/cursor_rules.js`. Each function definition and each line of code must adhere to these naming and commenting conventions.39
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 | |
| 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 | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.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 |
