Skip to content

Commit a12010e

Browse files
committed
docs: change wording of the DisallowTypeLongNames sniff documentation.
1 parent 7c8bdcd commit a12010e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

yCodeTech/Docs/Types/DisallowTypeLongNamesStandard.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<documentation title="Disallow Type Long Names">
22
<standard>
33
<![CDATA[
4-
Long type names are disallowed. Short names must be used in all contexts: docblocks, generic types, type declarations, and type casting.
4+
Long type names are disallowed. Short names must be used in all contexts.
55
66
This rule enforces:
77
8-
1. Use `bool` instead of `boolean` in ALL contexts
9-
2. Use `int` instead of `integer` in ALL contexts
8+
1. Use `bool` instead of `boolean`.
9+
2. Use `int` instead of `integer`.
10+
11+
Contexts:
12+
- Docblocks
13+
- Type declarations
14+
- Union types
15+
- Nullable types
16+
- Type casting
17+
- Generic types
1018
1119
Applies to:
1220

0 commit comments

Comments
 (0)