---
title: check function names 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 function names for wording issues
---

# check function names 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:** `python-inclusive/function-definition`

**Language:** Python

**Severity:** Notice

**Category:** Code Style

## Description{% #description %}

Ensure that some words are not used in the codebase and suggest replacement when appropriate.

Examples of replacement suggestions:

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

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

```python
# blacklist located at the end of the string
def foo_blacklist():
    pass
```

```python
# Do not use the name blacklist, even if casing is mixed
def BlaCKliSt_NaMeS():
    pass

def wHiTeLisT_NaMeS():
    pass
```

```python
# blacklist at the beginning of the function name
def blacklist_names():
    pass
```

```python
# wrong identifier in the function name and parameters
def blacklist_names(master, slave):
    pass
```

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

```python
def foo_denylist():
    pass
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 