Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1000.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1000: Do not declare static members on generic types

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

## Cause

Expand Down
11 changes: 6 additions & 5 deletions docs/fundamentals/code-analysis/quality-rules/ca1001.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1001: Types that own disposable fields should be disposable

| | Value |
|-|-|
| **Rule ID** | CA1001 |
| **Category** | [Design](design-warnings.md) |
| Property | Value |
|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|
| **Rule ID** | CA1001 |
| **Title** | Types that own disposable fields should be disposable |
| **Category** | [Design](design-warnings.md) |
| **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. |
| **Enabled by default in .NET 7** | No |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
5 changes: 3 additions & 2 deletions docs/fundamentals/code-analysis/quality-rules/ca1002.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ ms.author: gewarren
---
# CA1002: Do not expose generic lists

| | Value |
| ----------------------------------- | ---------------------------- |
| Property | Value |
|-------------------------------------|------------------------------|
| **Rule ID** | CA1002 |
| **Title** | Do not expose generic lists |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Breaking |
| **Enabled by default in .NET 7** | No |
Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1003.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1003: Use generic event handler instances

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

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1005.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ ms.author: gewarren
---
# CA1005: Avoid excessive parameters on generic types

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

## Cause

Expand Down
11 changes: 6 additions & 5 deletions docs/fundamentals/code-analysis/quality-rules/ca1008.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1008: Enums should have zero value

| | Value |
|-|-|
| **Rule ID** | CA1008 |
| **Category** | [Design](design-warnings.md) |
| Property | Value |
|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Rule ID** | CA1008 |
| **Title** | Enums should have zero value |
| **Category** | [Design](design-warnings.md) |
| **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. |
| **Enabled by default in .NET 7** | No |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1010.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ ms.author: gewarren
---
# CA1010: Collections should implement generic interface

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

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1012.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ dev_langs:
---
# CA1012: Abstract types should not have public constructors

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

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1014.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1014: Mark assemblies with CLSCompliantAttribute

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

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1016.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1016: Mark assemblies with AssemblyVersionAttribute

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

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1017.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1017: Mark assemblies with ComVisibleAttribute

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1017 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Non-breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|---------------------------------------------------------------|
| **Rule ID** | CA1017 |
| **Title** | Mark assemblies with Mark assemblies with ComVisibleAttribute |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Non-breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1018.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1018: Mark attributes with AttributeUsageAttribute

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1018 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|----------------------------------------------|
| **Rule ID** | CA1018 |
| **Title** | Mark attributes with AttributeUsageAttribute |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1019.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1019: Define accessors for attribute arguments

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1019 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Non-breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|------------------------------------------|
| **Rule ID** | CA1019 |
| **Title** | Define accessors for attribute arguments |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Non-breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1021.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ ms.author: gewarren
---
# CA1021: Avoid out parameters

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1021 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|------------------------------|
| **Rule ID** | CA1021 |
| **Title** | Avoid out parameters |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1024.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1024: Use properties where appropriate

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1024 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|----------------------------------|
| **Rule ID** | CA1024 |
| **Title** | Use properties where appropriate |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1027.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ ms.author: gewarren
---
# CA1027: Mark enums with FlagsAttribute

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1027 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Non-breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|--------------------------------|
| **Rule ID** | CA1027 |
| **Title** | Mark enums with FlagsAttribute |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Non-breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
13 changes: 7 additions & 6 deletions docs/fundamentals/code-analysis/quality-rules/ca1028.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ dev_langs:
---
# CA1028: Enum storage should be Int32

| Item | Value |
| -------------------------------- | ---------------------------- |
| Rule ID | CA1028 |
| Category | [Design](design-warnings.md) |
| Fix is breaking or non-breaking | Breaking |
| Enabled by default in .NET 7 | No |
| Property | Value |
|-------------------------------------|------------------------------|
| **Rule ID** | CA1028 |
| **Title** | Enum storage should be Int32 |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Breaking |
| **Enabled by default in .NET 7** | No |

## Cause

Expand Down
5 changes: 3 additions & 2 deletions docs/fundamentals/code-analysis/quality-rules/ca1030.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ ms.author: gewarren
---
# CA1030: Use events where appropriate

| | Value |
| ----------------------------------- | ---------------------------- |
| Property | Value |
|-------------------------------------|------------------------------|
| **Rule ID** | CA1030 |
| **Title** | Use events where appropriate |
| **Category** | [Design](design-warnings.md) |
| **Fix is breaking or non-breaking** | Non-breaking |
| **Enabled by default in .NET 7** | No |
Expand Down
Loading