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.8.2 docs/Uncommunicative-Variable-Name.md
reek-4.8.1 docs/Uncommunicative-Variable-Name.md
reek-4.8.0 docs/Uncommunicative-Variable-Name.md
reek-4.7.3 docs/Uncommunicative-Variable-Name.md
reek-4.7.2 docs/Uncommunicative-Variable-Name.md
reek-4.7.1 docs/Uncommunicative-Variable-Name.md
reek-4.7.0 docs/Uncommunicative-Variable-Name.md
reek-4.6.2 docs/Uncommunicative-Variable-Name.md
reek-4.6.1 docs/Uncommunicative-Variable-Name.md
reek-4.6.0 docs/Uncommunicative-Variable-Name.md
reek-4.5.6 docs/Uncommunicative-Variable-Name.md
reek-4.5.5 docs/Uncommunicative-Variable-Name.md
reek-4.5.4 docs/Uncommunicative-Variable-Name.md
reek-4.5.3 docs/Uncommunicative-Variable-Name.md
reek-4.5.2 docs/Uncommunicative-Variable-Name.md
reek-4.5.1 docs/Uncommunicative-Variable-Name.md
reek-4.5.0 docs/Uncommunicative-Variable-Name.md
reek-4.4.2 docs/Uncommunicative-Variable-Name.md
reek-4.4.1 docs/Uncommunicative-Variable-Name.md
reek-4.4.0 docs/Uncommunicative-Variable-Name.md