Check method and parameters names for wording issues


ID: ruby-inclusive/function-definition

Language: Ruby

Severity: Notice

Category: Best Practices


This rule helps ensure that you adhere to naming conventions that are inclusive, clear, and unambiguous. Instead of using terms like master and slave, which have offensive connotations, use neutral and descriptive terms like primary and secondary. Names you choose should be clear, descriptive, and considerate of the diverse backgrounds of those who might read or work with your code.

Non-Compliant Code Examples

def master(slave)

Compliant Code Examples

def primary(secondary)
end jetbrains

Seamless integrations. Try Datadog Code Analysis