Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/szepeviktor/uninformative-words

Variable names you should avoid 👺
https://github.com/szepeviktor/uninformative-words

meaningless non-informative uninformative variable variable-names

Last synced: about 1 month ago
JSON representation

Variable names you should avoid 👺

Awesome Lists containing this project

README

        

# Uninformative words

[![theories](https://img.shields.io/badge/more-theories-purple)](https://github.com/stars/szepeviktor/lists/theory)

Variable names you should avoid.

- `i` 👺
- any one or two letter name except `id`
- `arr`
- `bool`
- `boolean`
- `cnt`
- `col`
- `coll`
- `custom`
- `detail`
- `data` 👺
- `double`
- `elem`
- `err`
- `extra`
- `float`
- `impl`
- `ind`
- `info`
- `int`
- `integer`
- `item`
- `iter`
- `key`
- `len`
- `more`
- `other`
- `proc`
- `req`
- `res`
- `ret`
- `return`
- `str`
- `value` 👺
- `var`
- `vdata`

## Implementations

Please see the PHPCS rule in my
[useful frankenstein](https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset/blob/c75f1e20f1361ae7600829788dbe44d3969b84b8/PSR12NeutronRuleset/ruleset.xml#L243-L283)

## Contributing

📢 Come on! [Add a word](https://github.com/szepeviktor/uninformative-words/edit/master/README.md).
Pull Requests are free.