Skip to content

Commit b713fbc

Browse files
committed
Add is to the list of allowed short names.
In ElementNameMinimalLengthSniff
1 parent 131a51b commit b713fbc

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Not released
44
- Fix false positive in `ReturnTypeDeclarationSniff` with nullable types.
5+
- Add `is` to the list of allowed short names.
56

67
## 0.10.0
78
- Renamed sniffs namespace (**breaking change**).

Inpsyde/Sniffs/CodeQuality/ElementNameMinimalLengthSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ final class ElementNameMinimalLengthSniff implements Sniff
4444
'go',
4545
'it',
4646
'db',
47+
'is',
4748
];
4849

4950
/**

docs/inpsyde-rules-configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ That is possible via `minLength` property, e.g.:
1616
It is also possible to configure the whitelist of allowed names with less than 3 (or whatever
1717
the minimal length is configured to) characters.
1818
By default the whitelisted names are:
19+
1920
- `'i'`
2021
- `'id'`
22+
- `'is'`
2123
- `'to'`
2224
- `'up'`
2325
- `'ok'`

0 commit comments

Comments
 (0)