Skip to content

Commit d11c0f1

Browse files
authored
Fix formatting for Roslyn CA2300 - CA5405 rules (#36964)
* Fix formatting for Roslyn CA2300 - CA3147 rules * Fix formatting for Roslyn CA5350 - CA5405 rules
1 parent 1b8d5b9 commit d11c0f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+593
-502
lines changed

docs/fundamentals/code-analysis/quality-rules/ca2300.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2300: Do not use insecure deserializer BinaryFormatter
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2300 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|--------------------------------------------------|
19+
| **Rule ID** | CA2300 |
20+
| **Title** | Do not use insecure deserializer BinaryFormatter |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2301.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2301: Do not call BinaryFormatter.Deserialize without first setting BinaryFormatter.Binder
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2301 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|--------------------------------------------------------------------------------------|
19+
| **Rule ID** | CA2301 |
20+
| **Title** | Do not call BinaryFormatter.Deserialize without first setting BinaryFormatter.Binder |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2302.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2302: Ensure BinaryFormatter.Binder is set before calling BinaryFormatter.Deserialize
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2302 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|---------------------------------------------------------------------------------|
19+
| **Rule ID** | CA2302 |
20+
| **Title** | Ensure BinaryFormatter.Binder is set before calling BinaryFormatter.Deserialize |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2305.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2305: Do not use insecure deserializer LosFormatter
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2305 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|-----------------------------------------------|
19+
| **Rule ID** | CA2305 |
20+
| **Title** | Do not use insecure deserializer LosFormatter |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2310.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2310: Do not use insecure deserializer NetDataContractSerializer
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2310 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|------------------------------------------------------------|
19+
| **Rule ID** | CA2310 |
20+
| **Title** | Do not use insecure deserializer NetDataContractSerializer |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2311.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2311: Do not deserialize without first setting NetDataContractSerializer.Binder
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2311 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|---------------------------------------------------------------------------|
19+
| **Rule ID** | CA2311 |
20+
| **Title** | Do not deserialize without first setting NetDataContractSerializer.Binder |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2312.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2312: Ensure NetDataContractSerializer.Binder is set before deserializing
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2312 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|---------------------------------------------------------------------|
19+
| **Rule ID** | CA2312 |
20+
| **Title** | Ensure NetDataContractSerializer.Binder is set before deserializing |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2315.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2315: Do not use insecure deserializer ObjectStateFormatter
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2315 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|-------------------------------------------------------|
19+
| **Rule ID** | CA2315 |
20+
| **Title** | Do not use insecure deserializer ObjectStateFormatter |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

docs/fundamentals/code-analysis/quality-rules/ca2321.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ f1_keywords:
1313
---
1414
# CA2321: Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver
1515

16-
| | Value |
17-
| ----------------------------------- | -------------------------------- |
18-
| **Rule ID** | CA2321 |
19-
| **Category** | [Security](security-warnings.md) |
20-
| **Fix is breaking or non-breaking** | Non-breaking |
21-
| **Enabled by default in .NET 7** | No |
16+
| Property | Value |
17+
|-------------------------------------|-------------------------------------------------------------------------|
18+
| **Rule ID** | CA2321 |
19+
| **Title** | Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver |
20+
| **Category** | [Security](security-warnings.md) |
21+
| **Fix is breaking or non-breaking** | Non-breaking |
22+
| **Enabled by default in .NET 7** | No |
2223

2324
## Cause
2425

docs/fundamentals/code-analysis/quality-rules/ca2322.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ f1_keywords:
1414
---
1515
# CA2322: Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing
1616

17-
| | Value |
18-
| ----------------------------------- | -------------------------------- |
19-
| **Rule ID** | CA2322 |
20-
| **Category** | [Security](security-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Non-breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|---------------------------------------------------------------------------------------------|
19+
| **Rule ID** | CA2322 |
20+
| **Title** | Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing |
21+
| **Category** | [Security](security-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Non-breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

0 commit comments

Comments
 (0)