For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/static_analysis/static_analysis_rules/go-inclusive/comments.md. A documentation index is available at /llms.txt.
This product is not supported for your selected Datadog site. ().

Metadata

ID: go-inclusive/comments

Language: Go

Severity: Notice

Category: Best Practices

Description

Use inclusive language in comments.

Non-Compliant Code Examples

/**
 *  whitelist and blacklist names to prevent unauthorized usage
 */

// This app follows the master/slave model

// she SHE should check her code

// he should check his

Compliant Code Examples

/**
 *  allowlist and denylist names to prevent unauthorized usage
 */

// This app follows the primary/secondary model

// They should check their code
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 Security