High Ruby

Prefer composition over inheritance

Rule Description

Favor modules and dependency injection over deep inheritance. Max 2-3 inheritance levels. Duck typing over type checking.

Included in Rulesets

Rails Standards
52 rules • 1 standard
View
Ruby Style Guide
33 rules • 1 standard
View
Code Review Standards
214 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
High
Category
Ruby
Used in
3 rulesets