Check variable names for wording issues

이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

Metadata

ID: ruby-inclusive/var-definition

Language: Ruby

Severity: Notice

Category: Best Practices

Description

The rule checks the variable names in your Ruby code for potential wording issues. The purpose of this rule is to encourage the use of inclusive language in your codebase. Using inclusive language helps to create a more welcoming and respectful environment for everyone involved in the project.

Non-compliant code may contain variable names that have been identified as potentially offensive or non-inclusive, such as master.

To comply with this rule, use alternative, inclusive terms when naming your variables. For instance, instead of using master, you could use primary or main.

Non-Compliant Code Examples

master = 1

Compliant Code Examples

primary = 1
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

PREVIEWING: may/unit-testing