Skip to content

Commit

Permalink
Run pack
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Apr 17, 2022
1 parent b731593 commit 8c7b41d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
6 changes: 1 addition & 5 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
},
"xcopy-msbuild": "16.10.0-preview2"
},
"sdk": {
"version": "6.0.100",
"allowPrerelease": true,
"rollForward": "patch"
},

"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22179.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ Possible multiple enumerations of 'IEnumerable' collection. Consider using an im
|CodeFix|False|
---

## [CA1852](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851): Seal internal types
## [CA1852](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852): Seal internal types

When a type is not accessible outside its assembly and has no subtypes within its containing assembly, it can be safely sealed. Sealing types can improve performance.

Expand Down
21 changes: 21 additions & 0 deletions src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,27 @@
]
}
},
"CA1852": {
"id": "CA1852",
"shortDescription": "Seal internal types",
"fullDescription": "When a type is not accessible outside its assembly and has no subtypes within its containing assembly, it can be safely sealed. Sealing types can improve performance.",
"defaultLevel": "hidden",
"helpUri": "https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852",
"properties": {
"category": "Performance",
"isEnabledByDefault": true,
"typeName": "SealInternalTypes",
"languages": [
"C#",
"Visual Basic"
],
"tags": [
"Telemetry",
"EnabledRuleInAggressiveMode",
"CompilationEnd"
]
}
},
"CA2000": {
"id": "CA2000",
"shortDescription": "Dispose objects before losing scope",
Expand Down
1 change: 1 addition & 0 deletions src/NetAnalyzers/RulesMissingDocumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ Rule ID | Missing Help Link | Title |
CA1311 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311> | Specify a culture or use an invariant version |
CA1420 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1420> | Property, type, or attribute requires runtime marshalling |
CA1421 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1421> | This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied |
CA1852 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852> | Seal internal types |
CA2019 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2019> | Improper 'ThreadStatic' field initialization |
CA2259 | <https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2259> | 'ThreadStatic' only affects static fields |

0 comments on commit 8c7b41d

Please sign in to comment.