Loading...
Loading...
Compare original and translation side by side
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Structure & Decomposition | CRITICAL | |
| 2 | Conditional Simplification | CRITICAL | |
| 3 | Coupling & Dependencies | HIGH | |
| 4 | Ruby Idioms | HIGH | |
| 5 | Data & Value Objects | MEDIUM-HIGH | |
| 6 | Design Patterns | MEDIUM | |
| 7 | Modern Ruby 3.x | MEDIUM | |
| 8 | Naming & Readability | LOW-MEDIUM | |
| 优先级 | 类别 | 影响程度 | 前缀 |
|---|---|---|---|
| 1 | 结构与分解 | 严重 | |
| 2 | 条件简化 | 严重 | |
| 3 | 耦合与依赖 | 高 | |
| 4 | Ruby惯用语法 | 高 | |
| 5 | 数据与值对象 | 中高 | |
| 6 | 设计模式 | 中 | |
| 7 | 现代Ruby 3.x | 中 | |
| 8 | 命名与可读性 | 低中 | |
struct-extract-methodstruct-extract-classstruct-parameter-objectstruct-compose-methodstruct-replace-method-with-objectstruct-single-responsibilitystruct-flatten-deep-nestingstruct-extract-methodstruct-extract-classstruct-parameter-objectstruct-compose-methodstruct-replace-method-with-objectstruct-single-responsibilitystruct-flatten-deep-nestingcond-guard-clausescond-decompose-conditionalcond-replace-with-polymorphismcond-null-objectcond-pattern-matchingcond-consolidate-duplicatescond-guard-clausescond-decompose-conditionalcond-replace-with-polymorphismcond-null-objectcond-pattern-matchingcond-consolidate-duplicatescouple-law-of-demetercouple-feature-envycouple-dependency-injectioncouple-composition-over-inheritancecouple-tell-dont-askcouple-avoid-class-methods-domaincouple-law-of-demetercouple-feature-envycouple-dependency-injectioncouple-composition-over-inheritancecouple-tell-dont-askcouple-avoid-class-methods-domainidiom-prefer-enumerableidiom-keyword-argumentsidiom-duck-typingidiom-predicate-methodsidiom-respond-to-missingidiom-block-yieldidiom-implicit-returnidiom-prefer-enumerableidiom-keyword-argumentsidiom-duck-typingidiom-predicate-methodsidiom-respond-to-missingidiom-block-yieldidiom-implicit-returndata-value-objectdata-define-immutabledata-encapsulate-collectiondata-replace-data-clumpdata-separate-query-commanddata-value-objectdata-define-immutabledata-encapsulate-collectiondata-replace-data-clumpdata-separate-query-commandpattern-strategypattern-factorypattern-template-methodpattern-decoratorpattern-null-object-protocolpattern-strategypattern-factorypattern-template-methodpattern-decoratorpattern-null-object-protocolmodern-pattern-matchingmodern-deconstruct-keysmodern-endless-methodsmodern-hash-pattern-guardmodern-rightward-assignmentmodern-pattern-matchingmodern-deconstruct-keysmodern-endless-methodsmodern-hash-pattern-guardmodern-rightward-assignmentname-intention-revealingname-consistent-vocabularyname-avoid-abbreviationsname-rename-to-remove-commentsname-intention-revealingname-consistent-vocabularyname-avoid-abbreviationsname-rename-to-remove-comments| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
| 文件 | 描述 |
|---|---|
| references/_sections.md | 类别定义与排序说明 |
| assets/templates/_template.md | 新规则模板 |
| metadata.json | 版本与参考信息 |