RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/josephdodge8141/cursor

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 blocks

Repository

0

— · pushed 437 days ago

Last changed

3 days ago

First indexed 3 days ago.
josephdodge8141/cursor/.cursor/rules/function-naming-comments.mdcRawGitHub
1---
2description:
3globs:
4alwaysApply: false
5---
6# Function Naming and Line Commenting Convention
7 
8This rule applies specifically to `concepts/cursor_rules/cursor_rules.js` and enforces the following conventions:
9 
10## Function Naming
111. All function names must be abbreviated versions of their intended purpose
122. Abbreviations should be clear enough to understand the function's purpose
133. Use camelCase for multi-word abbreviations
14 
15Examples:
16- `calculateTotal` → `calcTot`
17- `validateUserInput` → `valUsrInp`
18- `processDataStream` → `procDStr`
19 
20## Line Comments
211. Every line of code must be followed by an explanatory comment
222. Comments should be placed on the same line after the code
233. Use `//` for inline comments
244. Comments should explain the purpose of the line, not just restate the code
25 
26Example:
27```javascript
28const calcTot = (nums) => { // Calculate sum of array elements
29 let sum = 0; // Initialize sum accumulator
30 nums.forEach(n => { // Iterate through each number
31 sum += n; // Add current number to running total
32 });
33 return sum; // Return final calculated sum
34};
35```
36 
37## Enforcement
38This 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 

Sections

  • Function Naming and Line Commenting Convention
  • Function Naming
  • Line Comments
  • Enforcement

What it covers

code-styledocs

Stack — with the evidence

javascript

(1.00)

Glob targeting

  • [object Object]

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
josephdodge8141
Language
—
License
—
Archived
no

All configs in this repo

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack