Skip to content

Commit e7bc74a

Browse files
committed
renaming files and adding redirection
updating toc.yml file
1 parent af7ec91 commit e7bc74a

File tree

10 files changed

+49
-14
lines changed

10 files changed

+49
-14
lines changed

.openpublishing.redirection.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8239,6 +8239,41 @@
82398239
"source_path": "docs/code-quality/ca3147-mark-verb-handlers-with-validateantiforgerytoken.md",
82408240
"redirect_url": "/visualstudio/code-quality/ca3147",
82418241
"redirect_document_id": true
8242+
},
8243+
{
8244+
"source_path": "docs/code-quality/ca2000-dispose-objects-before-losing-scope.md",
8245+
"redirect_url": "/visualstudio/code-quality/ca2000",
8246+
"redirect_document_id": true
8247+
},
8248+
{
8249+
"source_path": "docs/code-quality/ca2001-avoid-calling-problematic-methods.md",
8250+
"redirect_url": "/visualstudio/code-quality/ca2001",
8251+
"redirect_document_id": true
8252+
},
8253+
{
8254+
"source_path": "docs/code-quality/ca2002-do-not-lock-on-objects-with-weak-identity.md",
8255+
"redirect_url": "/visualstudio/code-quality/ca2002",
8256+
"redirect_document_id": true
8257+
},
8258+
{
8259+
"source_path": "docs/code-quality/ca2003-do-not-treat-fibers-as-threads.md",
8260+
"redirect_url": "/visualstudio/code-quality/ca2003",
8261+
"redirect_document_id": true
8262+
},
8263+
{
8264+
"source_path": "docs/code-quality/ca2004-remove-calls-to-gc-keepalive.md",
8265+
"redirect_url": "/visualstudio/code-quality/ca2004",
8266+
"redirect_document_id": true
8267+
},
8268+
{
8269+
"source_path": "docs/code-quality/ca2006-use-safehandle-to-encapsulate-native-resources.md",
8270+
"redirect_url": "/visualstudio/code-quality/ca2006",
8271+
"redirect_document_id": true
8272+
},
8273+
{
8274+
"source_path": "docs/code-quality/ca2007-do-not-directly-await-task.md",
8275+
"redirect_url": "/visualstudio/code-quality/ca2007",
8276+
"redirect_document_id": true
82428277
}
82438278
]
82448279
}

docs/code-quality/reliability-warnings.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Reliability warnings support library and application reliability, such as correc
2121

2222
|Rule|Description|
2323
|----------|-----------------|
24-
|[CA2000: Dispose objects before losing scope](../code-quality/ca2000-dispose-objects-before-losing-scope.md)|Because an exceptional event might occur that will prevent the finalizer of an object from running, the object should be explicitly disposed before all references to it are out of scope.|
25-
|[CA2001: Avoid calling problematic methods](../code-quality/ca2001-avoid-calling-problematic-methods.md)|A member calls a potentially dangerous or problematic method.|
26-
|[CA2002: Do not lock on objects with weak identity](../code-quality/ca2002-do-not-lock-on-objects-with-weak-identity.md)|An object is said to have a weak identity when it can be directly accessed across application domain boundaries. A thread that tries to acquire a lock on an object that has a weak identity can be blocked by a second thread in a different application domain that has a lock on the same object.|
27-
|[CA2003: Do not treat fibers as threads](../code-quality/ca2003-do-not-treat-fibers-as-threads.md)|A managed thread is being treated as a Win32 thread.|
28-
|[CA2004: Remove calls to GC.KeepAlive](../code-quality/ca2004-remove-calls-to-gc-keepalive.md)|If you are converting to SafeHandle usage, remove all calls to GC.KeepAlive (object). In this case, classes should not have to call GC.KeepAlive, assuming they do not have a finalizer but rely on SafeHandle to finalize the OS handle for them.|
29-
|[CA2006: Use SafeHandle to encapsulate native resources](../code-quality/ca2006-use-safehandle-to-encapsulate-native-resources.md)|Use of IntPtr in managed code might indicate a potential security and reliability problem. All uses of IntPtr must be reviewed to determine whether use of a SafeHandle, or similar technology, is required in its place.|
30-
|[CA2007: Do not directly await a Task](../code-quality/ca2007-do-not-directly-await-task.md)|An asynchronous method [awaits](/dotnet/csharp/language-reference/keywords/await) a <xref:System.Threading.Tasks.Task> directly.|
24+
|[CA2000: Dispose objects before losing scope](../code-quality/ca2000.md)|Because an exceptional event might occur that will prevent the finalizer of an object from running, the object should be explicitly disposed before all references to it are out of scope.|
25+
|[CA2001: Avoid calling problematic methods](../code-quality/ca2001.md)|A member calls a potentially dangerous or problematic method.|
26+
|[CA2002: Do not lock on objects with weak identity](../code-quality/ca2002.md)|An object is said to have a weak identity when it can be directly accessed across application domain boundaries. A thread that tries to acquire a lock on an object that has a weak identity can be blocked by a second thread in a different application domain that has a lock on the same object.|
27+
|[CA2003: Do not treat fibers as threads](../code-quality/ca2003.md)|A managed thread is being treated as a Win32 thread.|
28+
|[CA2004: Remove calls to GC.KeepAlive](../code-quality/ca2004.md)|If you are converting to SafeHandle usage, remove all calls to GC.KeepAlive (object). In this case, classes should not have to call GC.KeepAlive, assuming they do not have a finalizer but rely on SafeHandle to finalize the OS handle for them.|
29+
|[CA2006: Use SafeHandle to encapsulate native resources](../code-quality/ca2006.md)|Use of IntPtr in managed code might indicate a potential security and reliability problem. All uses of IntPtr must be reviewed to determine whether use of a SafeHandle, or similar technology, is required in its place.|
30+
|[CA2007: Do not directly await a Task](../code-quality/ca2007.md)|An asynchronous method [awaits](/dotnet/csharp/language-reference/keywords/await) a <xref:System.Threading.Tasks.Task> directly.|

docs/code-quality/toc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -543,19 +543,19 @@
543543
displayName: "reliability warnings"
544544
href: reliability-warnings.md
545545
- name: "CA2000: Dispose objects before losing scope"
546-
href: ca2000-dispose-objects-before-losing-scope.md
546+
href: ca2000.md
547547
- name: "CA2001: Avoid calling problematic methods"
548-
href: ca2001-avoid-calling-problematic-methods.md
548+
href: ca2001.md
549549
- name: "CA2002: Do not lock on objects with weak identity"
550-
href: ca2002-do-not-lock-on-objects-with-weak-identity.md
550+
href: ca2002.md
551551
- name: "CA2003: Do not treat fibers as threads"
552-
href: ca2003-do-not-treat-fibers-as-threads.md
552+
href: ca2003.md
553553
- name: "CA2004: Remove calls to GC.KeepAlive"
554-
href: ca2004-remove-calls-to-gc-keepalive.md
554+
href: ca2004.md
555555
- name: "CA2006: Use SafeHandle to encapsulate native resources"
556-
href: ca2006-use-safehandle-to-encapsulate-native-resources.md
556+
href: ca2006.md
557557
- name: "CA2007: Do not directly await a Task"
558-
href: ca2007-do-not-directly-await-task.md
558+
href: ca2007.md
559559
- name: Security warnings
560560
items:
561561
- name: Overview

0 commit comments

Comments
 (0)