Skip to content

Commit 0ca09e8

Browse files
authored
Fix formatting for Roslyn CA1000 - CA2260 rules (#36953)
* Fix formatting for Roslyn CA1000-CA1040 * Fix formatting for Roslyn CA1041-CA1311 * Fix formatting for Roslyn CA1401-CA1869 * Fix formatting for Roslyn CA2000-CA2260
1 parent a44980b commit 0ca09e8

File tree

205 files changed

+1262
-1057
lines changed

Some content is hidden

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

205 files changed

+1262
-1057
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1000: Do not declare static members on generic types
1919

20-
| | Value |
21-
|-------------------------------------|------------------------------|
22-
| **Rule ID** | CA1000 |
23-
| **Category** | [Design](design-warnings.md) |
24-
| **Fix is breaking or non-breaking** | Breaking |
25-
| **Enabled by default in .NET 7** | No |
20+
| Property | Value |
21+
|-------------------------------------|------------------------------------------------|
22+
| **Rule ID** | CA1000 |
23+
| **Title** | Do not declare static members on generic types |
24+
| **Category** | [Design](design-warnings.md) |
25+
| **Fix is breaking or non-breaking** | Breaking |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1001: Types that own disposable fields should be disposable
1919

20-
| | Value |
21-
|-|-|
22-
| **Rule ID** | CA1001 |
23-
| **Category** | [Design](design-warnings.md) |
20+
| Property | Value |
21+
|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|
22+
| **Rule ID** | CA1001 |
23+
| **Title** | Types that own disposable fields should be disposable |
24+
| **Category** | [Design](design-warnings.md) |
2425
| **Fix is breaking or non-breaking** | Non-breaking - If the type is not visible outside the assembly.<br/><br/>Breaking - If the type is visible outside the assembly. |
25-
| **Enabled by default in .NET 7** | No |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ ms.author: gewarren
1414
---
1515
# CA1002: Do not expose generic lists
1616

17-
| | Value |
18-
| ----------------------------------- | ---------------------------- |
17+
| Property | Value |
18+
|-------------------------------------|------------------------------|
1919
| **Rule ID** | CA1002 |
20+
| **Title** | Do not expose generic lists |
2021
| **Category** | [Design](design-warnings.md) |
2122
| **Fix is breaking or non-breaking** | Breaking |
2223
| **Enabled by default in .NET 7** | No |

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1003: Use generic event handler instances
1919

20-
| Item | Value |
21-
| -------------------------------- | ---------------------------- |
22-
| Rule ID | CA1003 |
23-
| Category | [Design](design-warnings.md) |
24-
| Fix is breaking or non-breaking | Breaking |
25-
| Enabled by default in .NET 7 | No |
20+
| Property | Value |
21+
|-------------------------------------|-------------------------------------|
22+
| **Rule ID** | CA1003 |
23+
| **Title** | Use generic event handler instances |
24+
| **Category** | [Design](design-warnings.md) |
25+
| **Fix is breaking or non-breaking** | Breaking |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ ms.author: gewarren
1414
---
1515
# CA1005: Avoid excessive parameters on generic types
1616

17-
| | Value |
18-
| ----------------------------------- | ---------------------------- |
19-
| **Rule ID** | CA1005 |
20-
| **Category** | [Design](design-warnings.md) |
21-
| **Fix is breaking or non-breaking** | Breaking |
22-
| **Enabled by default in .NET 7** | No |
17+
| Property | Value |
18+
|-------------------------------------|---------------------------------------------|
19+
| **Rule ID** | CA1005 |
20+
| **Title** | Avoid excessive parameters on generic types |
21+
| **Category** | [Design](design-warnings.md) |
22+
| **Fix is breaking or non-breaking** | Breaking |
23+
| **Enabled by default in .NET 7** | No |
2324

2425
## Cause
2526

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1008: Enums should have zero value
1919

20-
| | Value |
21-
|-|-|
22-
| **Rule ID** | CA1008 |
23-
| **Category** | [Design](design-warnings.md) |
20+
| Property | Value |
21+
|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
22+
| **Rule ID** | CA1008 |
23+
| **Title** | Enums should have zero value |
24+
| **Category** | [Design](design-warnings.md) |
2425
| **Fix is breaking or non-breaking** | Non-breaking - When you're prompted to add a `None` value to a non-flag enumeration. Breaking - When you're prompted to rename or remove any enumeration values. |
25-
| **Enabled by default in .NET 7** | No |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ ms.author: gewarren
1616
---
1717
# CA1010: Collections should implement generic interface
1818

19-
| Item | Value |
20-
| -------------------------------- | ---------------------------- |
21-
| Rule ID | CA1010 |
22-
| Category | [Design](design-warnings.md) |
23-
| Fix is breaking or non-breaking | Non-breaking |
24-
| Enabled by default in .NET 7 | No |
19+
| Property | Value |
20+
|-------------------------------------|------------------------------------------------|
21+
| **Rule ID** | CA1010 |
22+
| **Title** | Collections should implement generic interface |
23+
| **Category** | [Design](design-warnings.md) |
24+
| **Fix is breaking or non-breaking** | Non-breaking |
25+
| **Enabled by default in .NET 7** | No |
2526

2627
## Cause
2728

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ dev_langs:
1616
---
1717
# CA1012: Abstract types should not have public constructors
1818

19-
| Item | Value |
20-
| -------------------------------- | ---------------------------- |
21-
| Rule ID | CA1012 |
22-
| Category | [Design](design-warnings.md) |
23-
| Fix is breaking or non-breaking | Non-breaking |
24-
| Enabled by default in .NET 7 | No |
19+
| Property | Value |
20+
|-------------------------------------|----------------------------------------------------|
21+
| **Rule ID** | CA1012 |
22+
| **Title** | Abstract types should not have public constructors |
23+
| **Category** | [Design](design-warnings.md) |
24+
| **Fix is breaking or non-breaking** | Non-breaking |
25+
| **Enabled by default in .NET 7** | No |
2526

2627
## Cause
2728

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1014: Mark assemblies with CLSCompliantAttribute
1919

20-
| Item | Value |
21-
| -------------------------------- | ---------------------------- |
22-
| Rule ID | CA1014 |
23-
| Category | [Design](design-warnings.md) |
24-
| Fix is breaking or non-breaking | Non-breaking |
25-
| Enabled by default in .NET 7 | No |
20+
| Property | Value |
21+
|-------------------------------------|--------------------------------------------|
22+
| **Rule ID** | CA1014 |
23+
| **Title** | Mark assemblies with CLSCompliantAttribute |
24+
| **Category** | [Design](design-warnings.md) |
25+
| **Fix is breaking or non-breaking** | Non-breaking |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dev_langs:
1717
---
1818
# CA1016: Mark assemblies with AssemblyVersionAttribute
1919

20-
| Item | Value |
21-
| -------------------------------- | ---------------------------- |
22-
| Rule ID | CA1016 |
23-
| Category | [Design](design-warnings.md) |
24-
| Fix is breaking or non-breaking | Non-breaking |
25-
| Enabled by default in .NET 7 | No |
20+
| Property | Value |
21+
|-------------------------------------|-----------------------------------------------|
22+
| **Rule ID** | CA1016 |
23+
| **Title** | Mark assemblies with AssemblyVersionAttribute |
24+
| **Category** | [Design](design-warnings.md) |
25+
| **Fix is breaking or non-breaking** | Non-breaking |
26+
| **Enabled by default in .NET 7** | No |
2627

2728
## Cause
2829

0 commit comments

Comments
 (0)