Skip to content

Commit b1f3c9b

Browse files
author
Greg Van Liew
authored
Merge pull request #646 from MicrosoftDocs/FromPublicMaster
Confirm merge from FromPublicMaster to master to sync with https://github.com/MicrosoftDocs/visualstudio-docs (branch master)
2 parents 0387b9a + 4ba53e2 commit b1f3c9b

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

docs/code-quality/code-analysis-rule-set-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ translation.priority.mt:
3232
- "tr-tr"
3333
---
3434
# Code analysis rule set reference
35-
When you configure code analysis for managed code projects in [!INCLUDE[vsPreLong](../code-quality/includes/vsprelong_md.md)], [!INCLUDE[vsUltLong](../code-quality/includes/vsultlong_md.md)], or [!INCLUDE[vsPro](../code-quality/includes/vspro_md.md)]you are presented with a list of built-in *rule sets*. You can either use one of the standar rule sets, or you can customize a rule set to fit your project requirements.
35+
When you configure code analysis for managed code projects in [!INCLUDE[vsPreLong](../code-quality/includes/vsprelong_md.md)], [!INCLUDE[vsUltLong](../code-quality/includes/vsultlong_md.md)], or [!INCLUDE[vsPro](../code-quality/includes/vspro_md.md)]you are presented with a list of built-in *rule sets*. You can either use one of the standard rule sets, or you can customize a rule set to fit your project requirements.
3636

3737
## Available Rule Sets
3838
The following table lists the default rule sets:

docs/code-quality/using-the-cpp-core-guidelines-checkers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ You can run the C++ Core Checker only on specified files by using the same appro
183183
</BuildMacro>
184184
<BuildMacro Include="Esp_Extensions">
185185
<EnvironmentVariable>true</EnvironmentVariable>
186-
<ValueCppCoreCheck.dll</Value>
186+
<Value>CppCoreCheck.dll</Value>
187187
</BuildMacro>
188188
</ItemGroup>
189189
```

docs/ide/editorconfig-code-style-settings-reference.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For code style option, you must specify **true** (prefer this option) or **false
5151

5252
Severity | effect
5353
------------ | -------------
54-
none/silent | Do not show anything to the user when this style is not being followed, however code generation features will generate in this style.
54+
none/silent | Do not show anything to the user when this style is not being followed, however code generation features generate in this style.
5555
suggestion | When this style is not being followed, show it to the user as a suggestion (underlying dots on the first two characters).
5656
warning | When this style is not being followed, show a compiler warning.
5757
error | When this style is not being followed, show a compiler error.
@@ -111,8 +111,8 @@ error | When this style is not being followed, show a compiler error.
111111

112112
#### Example editorconfig file:
113113
```
114-
# CSharp and VisualBasic code style settings:
115-
[*.cs,*.vb]
114+
# CSharp and Visual Basic code style settings:
115+
[*.{cs,vb}]
116116
dotnet_style_qualification_for_field = false:suggestion
117117
```
118118

@@ -129,8 +129,8 @@ dotnet_style_qualification_for_field = false:suggestion
129129

130130
#### Example editorconfig file:
131131
```
132-
# CSharp and VisualBasic code style settings:
133-
[*.cs,*.vb]
132+
# CSharp and Visual Basic code style settings:
133+
[*.{cs,vb}]
134134
dotnet_style_qualification_for_property = false:suggestion
135135
```
136136

@@ -148,8 +148,8 @@ dotnet_style_qualification_for_property = false:suggestion
148148

149149
#### Example editorconfig file:
150150
```
151-
# CSharp and VisualBasic code style settings:
152-
[*.cs, *.vb]
151+
# CSharp and Visual Basic code style settings:
152+
[*.{cs,vb}]
153153
dotnet_style_qualification_for_method = false:suggestion
154154
```
155155

@@ -166,8 +166,8 @@ dotnet_style_qualification_for_method = false:suggestion
166166

167167
#### Example editorconfig file:
168168
```
169-
# CSharp and VisualBasic code style settings:
170-
[*.cs, *.vb]
169+
# CSharp and Visual Basic code style settings:
170+
[*.{cs,vb}]
171171
dotnet_style_qualification_for_event = false:suggestion
172172
```
173173

@@ -185,8 +185,8 @@ dotnet_style_qualification_for_event = false:suggestion
185185

186186
#### Example editorconfig file:
187187
```
188-
# CSharp and VisualBasic code style settings:
189-
[*.cs, *.vb]
188+
# CSharp and Visual Basic code style settings:
189+
[*.{cs,vb}]
190190
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
191191
```
192192

@@ -203,8 +203,8 @@ dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
203203

204204
#### Example editorconfig file:
205205
```
206-
# CSharp and VisualBasic code style settings:
207-
[*.cs, *.vb]
206+
# CSharp and Visual Basic code style settings:
207+
[*.{cs,vb}]
208208
dotnet_style_predefined_type_for_member_access = true:suggestion
209209
```
210210

@@ -222,8 +222,8 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
222222

223223
#### Example editorconfig file:
224224
```
225-
# CSharp and VisualBasic code style settings:
226-
[*.cs, *.vb]
225+
# CSharp and Visual Basic code style settings:
226+
[*.{cs,vb}]
227227
dotnet_style_object_initializer = true:suggestion
228228
```
229229

@@ -240,8 +240,8 @@ dotnet_style_object_initializer = true:suggestion
240240

241241
#### Example editorconfig file:
242242
```
243-
# CSharp and VisualBasic code style settings:
244-
[*.cs, *.vb]
243+
# CSharp and Visual Basic code style settings:
244+
[*.{cs,vb}]
245245
dotnet_style_collection_initializer = true:suggestion
246246
```
247247

@@ -258,8 +258,8 @@ dotnet_style_collection_initializer = true:suggestion
258258

259259
#### Example editorconfig file:
260260
```
261-
# CSharp and VisualBasic code style settings:
262-
[*.cs, *.vb]
261+
# CSharp and Visual Basic code style settings:
262+
[*.{cs,vb}]
263263
dotnet_style_explicit_tuple_names = true:suggestion
264264
```
265265

@@ -276,8 +276,8 @@ dotnet_style_explicit_tuple_names = true:suggestion
276276

277277
#### Example editorconfig file:
278278
```
279-
# CSharp and VisualBasic code style settings:
280-
[*.cs, *.vb]
279+
# CSharp and Visual Basic code style settings:
280+
[*.{cs,vb}]
281281
dotnet_style_coalesce_expression = true:suggestion
282282
```
283283

@@ -294,8 +294,8 @@ dotnet_style_coalesce_expression = true:suggestion
294294

295295
#### Example editorconfig file:
296296
```
297-
# CSharp and VisualBasic code style settings:
298-
[*.cs, *.vb]
297+
# CSharp and Visual Basic code style settings:
298+
[*.{cs,vb}]
299299
dotnet_style_null_propagation = true:suggestion
300300
```
301301

@@ -643,7 +643,7 @@ For formatting options, you must specify **true** (prefer this option) or **fals
643643
#### Example editorconfig file:
644644
```
645645
# .NET formatting settings:
646-
[*.cs, *.vb]
646+
[*.{cs,vb}]
647647
dotnet_sort_system_directives_first = true
648648
```
649649

@@ -1228,19 +1228,19 @@ styleTitle:<br>
12281228
`dotnet_naming_style.<styleTitle>.word_separator = string`<br>
12291229

12301230
## Writing a Naming Convention
1231-
For naming conventions, you must specify **symbols**, **style**, and a **severity**. Naming conventions should be ordered from most-specific to least-specific. The first rule encountered that can be applied, will be the only rule applied.
1231+
For naming conventions, you must specify **symbols**, **style**, and a **severity**. Naming conventions should be ordered from most-specific to least-specific. The first rule encountered that can be applied, is the only rule applied.
12321232

12331233
### Severity
12341234
The following are valid options for the severity of a naming style rule
12351235
`none`, `silent`, `suggestion`, `warning`, `error`.
12361236

12371237
`none` and `silent` are synonymous and mean that no indication of any kind should be shown to the user. This has the effect of disabling this rule.
12381238

1239-
`suggestion` means that the user will be shown the following in the Error List: and the following in the IDE. The `suggestion` severity will allow the naming rule to run, but it will not cause the build to break.
1239+
`suggestion` means that the user is shown the following in the Error List: and the following in the IDE. The `suggestion` severity allows the naming rule to run, but it doesn't cause the build to break.
12401240

12411241
Severity | effect
12421242
------------ | -------------
1243-
none/silent | Do not show anything to the user when this style is not being followed, however code generation features will generate in this style.
1243+
none/silent | Do not show anything to the user when this style is not being followed, however code generation features generate in this style.
12441244
suggestion | When this style is not being followed, show it to the user as a suggestion (underlying dots on the first two characters).
12451245
warning | When this style is not being followed, show a compiler warning.
12461246
error | When this style is not being followed, show a compiler error.
@@ -1289,8 +1289,8 @@ Identify the naming style to apply to the symbols.
12891289

12901290
### Example Naming Convention
12911291
```
1292-
# CSharp formatting settings:
1293-
[*.cs]
1292+
# Dotnet Naming Conventions
1293+
[*.{cs,vb}]
12941294
dotnet_naming_rule.async_methods_end_in_async.symbols = any_async_methods
12951295
dotnet_naming_rule.async_methods_end_in_async.style = end_in_async
12961296
dotnet_naming_rule.async_methods_end_in_async.severity = suggestion

0 commit comments

Comments
 (0)