---
title: "bidirectional-control-character"
description: "Reject invisible bidirectional source controls."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bidirectional-control-character

**Default severity:** `error`

Purpose: detect invisible Unicode controls that can change the visual order of
source text without changing its logical byte order. Such controls can make
reviewed code appear to mean something different from what the compiler reads.

The rule covers embedding, override, isolate, and matching pop controls. Write
ordinary direction-neutral source text instead.

## Bad

The comment below contains an invisible `U+202E RIGHT-TO-LEFT OVERRIDE` before
`denied`, which can make the source appear in a different order:

```go
// access ‮denied
```

## Good

```go
// access denied
```

Source: https://strider.gempir.com/lints/bidirectional-control-character/index.mdx
