Sha256: 29339710a9c5bf25944d5fdbc57386e1aa542abcdfcec97608df36ce8e3996c5

Contents?: true

Size: 936 Bytes

Versions: 33

Compression:

Stored size: 936 Bytes

Contents

# Uncommunicative Variable Name

## Introduction

An _Uncommunicative Variable Name_ is a variable name that doesn't communicate
its intent well enough. This code smell is a case of
[Uncommunicative Name](Uncommunicative-Name.md).

## Current Support in Reek

_Uncommunicative Variable Name_ checks for:

* single-character names
* any name ending with a number
* camelCaseVariableNames

## Configuration

Reek's _Uncommunicative Variable Name_ detector supports the
[Basic Smell Options](Basic-Smell-Options.md), plus:

| Option         | Value       | Effect  |
| ---------------|-------------|---------|
| `reject` | array of regular expressions | The set of regular expressions that Reek uses to check for bad names. Defaults to `[/^.$/, /[0-9]$/, /[A-Z]/]`. |
| `accept` | array of strings or regular expressions | Name that will be accepted (not reported) even if they match one of the `reject` expressions. Defaults to `['_']`.|

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
reek-4.3.0 docs/Uncommunicative-Variable-Name.md
reek-4.2.5 docs/Uncommunicative-Variable-Name.md
reek-4.2.4 docs/Uncommunicative-Variable-Name.md
reek-4.2.3 docs/Uncommunicative-Variable-Name.md
reek-4.2.2 docs/Uncommunicative-Variable-Name.md
reek-4.2.1 docs/Uncommunicative-Variable-Name.md
reek-4.2.0 docs/Uncommunicative-Variable-Name.md
reek-4.1.1 docs/Uncommunicative-Variable-Name.md
reek-4.1.0 docs/Uncommunicative-Variable-Name.md
reek-4.0.5 docs/Uncommunicative-Variable-Name.md
reek-4.0.4 docs/Uncommunicative-Variable-Name.md
reek-4.0.3 docs/Uncommunicative-Variable-Name.md
reek-4.0.2 docs/Uncommunicative-Variable-Name.md