Skip to content

Commit

Permalink
fix bad links
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren committed Jul 22, 2023
1 parent 83c2a51 commit b40d547
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ For more information, see [Indexers (C# Programming Guide)](../indexers/index.md

## See also

- [.NET code style rules for expression-bodied-members](../../../fundamentals/code-analysis/style-rules/expression-bodied-members.md)
- [.NET code style rules for expression-bodied-members](../../../fundamentals/code-analysis/style-rules/language-rules.md#expression-bodied-members)
1 change: 0 additions & 1 deletion docs/fundamentals/code-analysis/style-rules/ide0005.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ For more information, see [How to suppress code analysis warnings](../suppress-w

## See also

- [`using` directive preferences](using-directive-preferences.md)
- [`using` directive placement (IDE0065)](ide0065.md)
- [C# `using` directive](../../../csharp/language-reference/keywords/using-directive.md)
- [C# `using` static directive](../../../csharp/language-reference/keywords/using-directive.md)
Expand Down
1 change: 0 additions & 1 deletion docs/fundamentals/code-analysis/style-rules/ide0044.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ For more information, see [How to suppress code analysis warnings](../suppress-w

## See also

- [Field preferences](field-preferences.md)
- [Code style language rules](language-rules.md)
- [Code style rules reference](index.md)
1 change: 0 additions & 1 deletion docs/fundamentals/code-analysis/style-rules/ide0060.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,4 @@ For more information, see [How to suppress code analysis warnings](../suppress-w

## See also

- [Parameter preferences](parameter-preferences.md)
- [Code style rules reference](index.md)
42 changes: 21 additions & 21 deletions docs/fundamentals/code-analysis/style-rules/language-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ This category also includes rules that identify parts of the code base that are

The language rules fall into the following categories:

- [.NET style rules](#net-style-rules): Rules that apply to both C# and Visual Basic. The option names for these rules start with the prefix `dotnet_style_`.
- [C# style rules](#c-style-rules): Rules that are specific to C# code. The option names for these rules start with the prefix `csharp_style_`.
- [Visual Basic style rules](#visual-basic-style-rules): Rules that are specific to Visual Basic code. The option names for these rules start with the prefix `visual_basic_style_`.
- .NET style rules: Rules that apply to both C# and Visual Basic. The option names for these rules start with the prefix `dotnet_style_`.
- C# style rules: Rules that are specific to C# code. The option names for these rules start with the prefix `csharp_style_`.
- Visual Basic style rules: Rules that are specific to Visual Basic code. The option names for these rules start with the prefix `visual_basic_style_`.

## Option format

Expand Down Expand Up @@ -73,18 +73,18 @@ Language and unnecessary code rules are further categorized into subcategories,

### `using` directive preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Require file header (IDE0073)](ide0073.md)

C# only:
C# style rules:

- [Remove unnecessary using directives (IDE0005)](ide0005.md)
- ['using' directive placement (IDE0065)](ide0065.md)

### Code-block preferences

C# only:
C# style rules:

- [Add braces (IDE0011)](ide0011.md)
- [Use simple 'using' statement (IDE0063)](ide0063.md)
Expand All @@ -96,7 +96,7 @@ C# only:

### Expression-bodied members

C# only:
C# style rules:

- [Use expression body for constructors (IDE0021)](ide0021.md)
- [Use expression body for methods (IDE0022)](ide0022.md)
Expand All @@ -110,7 +110,7 @@ C# only:

### Expression-level preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Simplify name (IDE0001)](ide0001.md)
- [Simplify member access (IDE0002)](ide0002.md)
Expand Down Expand Up @@ -143,7 +143,7 @@ C# and Visual Basic:
- [Simplify LINQ expression (IDE0120)](ide0120.md)
- [Namespace does not match folder structure (IDE0130)](ide0130.md)

C# only:
C# style rules:

- [Use throw expression (IDE0016)](ide0016.md)
- [Inline variable declaration (IDE0018)](ide0018.md)
Expand All @@ -161,32 +161,32 @@ C# only:
- [Add explicit cast in foreach loop (IDE0220)](ide0220.md)
- [Use UTF-8 string literal (IDE0230)](ide0230.md)

Visual Basic only:
Visual Basic style rules:

- [Remove `ByVal` (IDE0081)](ide0081.md)
- [Use pattern matching (`IsNot` operator) (IDE0084)](ide0084.md)
- [Simplify object creation (IDE0140)](ide0140.md)

### Field preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Add readonly modifier (IDE0044)](ide0044.md)

### Language keyword vs. framework types preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Use language keywords instead of framework type names for type references (IDE0049)](ide0049.md)

### Modifier preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Order modifiers (IDE0036)](ide0036.md)
- [Add accessibility modifiers (IDE0040)](ide0040.md)

C# only:
C# style rules:

- [Make local function static (IDE0062)](ide0062.md)
- [Make struct fields writable (IDE0064)](ide0064.md)
Expand All @@ -203,26 +203,26 @@ C# only:

### Null-checking preferences

C# only:
C# style rules:

- [Use conditional delegate call (IDE1005)](ide1005.md)

### Parameter preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Remove unused parameter (IDE0060)](ide0060.md)

### Parentheses preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Parentheses preferences (IDE0047)](ide0047-ide0048.md)
- [Parentheses preferences (IDE0048)](ide0047-ide0048.md)

### Pattern-matching preferences

C# only:
C# style rules:

- [Use pattern matching to avoid 'as' followed by 'null' check (IDE0019)](ide0019.md)
- [Use pattern matching to avoid 'is' check followed by a cast (IDE0020)](ide0020-ide0038.md)
Expand All @@ -234,20 +234,20 @@ C# only:

### Suppression preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [Remove unnecessary suppression (IDE0079)](ide0079.md)

### `This.` and `me.` preferences

C# and Visual Basic:
.NET style rules (C# and Visual Basic):

- [this and Me preferences (IDE0003)](ide0003-ide0009.md)
- [this and Me preferences (IDE0009)](ide0003-ide0009.md)

### `var` preferences

C# only:
C# style rules:

- ['var' preferences (IDE0007)](ide0007-ide0008.md)
- ['var' preferences (IDE0008)](ide0007-ide0008.md)
Expand Down
3 changes: 0 additions & 3 deletions docs/whats-new/dotnet-7-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ Welcome to what's new in the .NET docs for the .NET 7 release. This article list
- [CA1418: Validate platform compatibility](../fundamentals/code-analysis/quality-rules/ca1418.md) - Add docs for CA1420 and CA1422
- [Portability and interoperability rules](../fundamentals/code-analysis/quality-rules/interoperability-warnings.md) - Add docs for CA1420 and CA1422
- [Code-style rule options](../fundamentals/code-analysis/code-style-rule-options.md) - Add missing code-style rules
- [Expression-level preferences](../fundamentals/code-analysis/style-rules/expression-level-preferences.md) - Add missing code-style rules
- [Use local function instead of lambda (IDE0039)](../fundamentals/code-analysis/style-rules/ide0039.md) - Add missing code-style rules
- [Code-style rules](../fundamentals/code-analysis/style-rules/index.md)
- Add missing code-style rules
Expand All @@ -148,8 +147,6 @@ Welcome to what's new in the .NET docs for the .NET 7 release. This article list
- [Language rules](../fundamentals/code-analysis/style-rules/language-rules.md)
- Add missing code-style rules
- Add IDE0160 and IDE0161.
- [Null-checking preferences](../fundamentals/code-analysis/style-rules/null-checking-preferences.md) - Add missing code-style rules
- [Pattern matching preferences](../fundamentals/code-analysis/style-rules/pattern-matching-preferences.md) - Add missing code-style rules
- [.NET runtime contention events](../fundamentals/diagnostics/runtime-contention-events.md) - Update the doc with the new version of ContentionStart
- [Error codes returned by package validation](../fundamentals/package-validation/diagnostic-ids.md)
- add docs for diagnostics CP0012 and CP0013
Expand Down

0 comments on commit b40d547

Please sign in to comment.