You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Configuration.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,21 @@ This section describes the features of readability rules which can be configured
100
100
}
101
101
```
102
102
103
-
> Currently there are no configurable settings for readability rules.
103
+
### Aliases for Built-In Types
104
+
105
+
| Property | Default Value | Minimum Version | Summary |
106
+
| --- | --- | --- | --- |
107
+
|`allowBuiltInTypeAliases`|**false**| 1.1.0-beta007 | Specifies whether aliases are allowed for built-in types. |
108
+
109
+
By default, SA1121 reports a diagnostic for the use of named aliases for built-in types:
110
+
111
+
```csharp
112
+
usingHRESULT=System.Int32;
113
+
114
+
HRESULThr=SomeNativeOperation(); // SA1121
115
+
```
116
+
117
+
The `allowBuiltInTypeAliases` configuration property can be set to `true` to allow cases like this while continuing to report diagnostics for direct references to the metadata type name, `Int32`.
0 commit comments