---
title: Check comments for wording issues
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > Code Security > Static Code Analysis (SAST) > SAST
  Rules > Check comments for wording issues
---

# Check comments for wording issues

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

## Metadata{% #metadata %}

**ID:** `javascript-inclusive/comments`

**Language:** JavaScript

**Severity:** Notice

**Category:** Code Style

## Description{% #description %}

Check the variable names and suggest better names.

Examples of replacement suggestions:

- `blacklist` with `denylist`
- `whitelist` with `allowlist`
- `master` with `primary`
- `slave` with `secondary`

## Non-Compliant Code Examples{% #non-compliant-code-examples %}

```javascript
/**
 *  whitelist names to prevent unauthorized usage
 */

// she SHE should check her code

// he should check his
```

## Compliant Code Examples{% #compliant-code-examples %}

```javascript
// allowlist names to prevent unauthorized usage

/* the comments do not have a history of issues */

// do you have a mastercard
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 