mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
add .mdc file
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Defines error handling and validation strategies within Ruby code in DragonRuby projects.
|
||||
globs: **/*.rb
|
||||
---
|
||||
- Use exceptions for exceptional cases, not for control flow.
|
||||
- Implement proper error logging and user-friendly messages.
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Applies general Ruby coding style, structure, and best practices for DragonRuby projects.
|
||||
globs: **/*.rb
|
||||
---
|
||||
- Write concise, idiomatic Ruby code with accurate examples.
|
||||
- Follow Ruby and DragonRuby conventions and best practices.
|
||||
- Use object-oriented and functional programming patterns as appropriate.
|
||||
- Prefer iteration and modularization over code duplication.
|
||||
- Structure files according to DragonRuby conventions.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Enforces specific naming conventions for files, methods, variables, classes, and modules in DragonRuby projects.
|
||||
globs: **/*.rb
|
||||
---
|
||||
- Use snake_case for file names, method names, and variables.
|
||||
- Use CamelCase for class and module names.
|
||||
- Follow DragonRuby naming conventions.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Dictates syntax and formatting guidelines for Ruby code within DragonRuby projects, adhering to the Ruby Style Guide.
|
||||
globs: **/*.rb
|
||||
---
|
||||
- Follow the Ruby Style Guide (https://rubystyle.guide/)
|
||||
- Use Ruby's expressive syntax (e.g., unless, ||=, &.)
|
||||
- Prefer single quotes for strings unless interpolation is needed.
|
||||
Reference in New Issue
Block a user