Check method and parameters names for wording issues

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。

Metadata

ID: ruby-inclusive/function-definition

Language: Ruby

Severity: Notice

Category: Best Practices

Description

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)
end

Compliant Code Examples

def primary(secondary)
end
https://static.datadoghq.com/static/images/logos/github_avatar.svg https://static.datadoghq.com/static/images/logos/vscode_avatar.svg jetbrains

Seamless integrations. Try Datadog Code Analysis