Check comments for wording issues

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Metadata

ID: ruby-inclusive/comments

Language: Ruby

Severity: Notice

Category: Best Practices

Description

This rule checks the comments in your Ruby code for potentially insensitive or inappropriate wording. It specifically flags terms considered problematic due to historical connotations.

To avoid violating this rule, use neutral, descriptive terms in your comments. For example, instead of using “master”, you could use terms like “primary”, “main”, or “leader”.

Non-Compliant Code Examples

# master
print("foo")

Compliant Code Examples

# primary
print("foo")
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