From 08a94751e6f52df3653cb7235ce6771355329e6c Mon Sep 17 00:00:00 2001 From: Zsolt Kolbay Date: Thu, 2 Mar 2023 11:22:49 +0100 Subject: [PATCH] Update RSPEC --- analyzers/rspec/cs/S4433_c#.html | 5 +++-- analyzers/rspec/cs/S4545_c#.html | 9 +++++---- analyzers/rspec/vbnet/S4545_vb.net.html | 9 +++++---- analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json | 2 +- analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json | 2 +- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/analyzers/rspec/cs/S4433_c#.html b/analyzers/rspec/cs/S4433_c#.html index 01d7be99fff..867a6f35e80 100644 --- a/analyzers/rspec/cs/S4433_c#.html +++ b/analyzers/rspec/cs/S4433_c#.html @@ -1,5 +1,5 @@

An LDAP client authenticates to an LDAP server with a "bind request" which provides, among other, a simple authentication method.

+href="https://web.archive.org/web/20220922153922/https://ldapwiki.com/wiki/Simple%20Authentication">simple authentication method.

Simple authentication in LDAP can be used with three different mechanisms:

diff --git a/analyzers/rspec/cs/S4545_c#.html b/analyzers/rspec/cs/S4545_c#.html index 1ddd69d9df0..833d7af462b 100644 --- a/analyzers/rspec/cs/S4545_c#.html +++ b/analyzers/rspec/cs/S4545_c#.html @@ -1,8 +1,9 @@

The DebuggerDisplayAttribute is used to determine how an object is displayed in the debugger window.

-

The DebuggerDisplayAttribute constructor takes a single argument: the string to be displayed in the value column for instances of the -type. Any text within curly braces is evaluated as the name of a field, property, or method.

-

Naming a non-existent field, property or method between curly braces will result in a CS0103 error in the debug window when debugging objects. -Although there is no impact on the production code, providing a wrong value can lead to difficulties when debugging the application.

+

The DebuggerDisplayAttribute constructor takes a single mandatory argument: the string to be displayed in the value column for +instances of the type. Any text within curly braces is evaluated as the name of a field or property, or any complex expression containing method calls +and operators.

+

Naming a non-existent member between curly braces will result in a CS0103 error in the debug window when debugging objects. Although there is no +impact on the production code, providing a wrong value can lead to difficulties when debugging the application.

This rule raises an issue when text specified between curly braces refers to members that don’t exist in the current context.

Noncompliant Code Example

diff --git a/analyzers/rspec/vbnet/S4545_vb.net.html b/analyzers/rspec/vbnet/S4545_vb.net.html
index 80db2002279..41584eec577 100644
--- a/analyzers/rspec/vbnet/S4545_vb.net.html
+++ b/analyzers/rspec/vbnet/S4545_vb.net.html
@@ -1,8 +1,9 @@
 

The DebuggerDisplayAttribute is used to determine how an object is displayed in the debugger window.

-

The DebuggerDisplayAttribute constructor takes a single argument: the string to be displayed in the value column for instances of the -type. Any text within curly braces is evaluated as the name of a field, property, or method.

-

Naming a non-existent field, property or method between curly braces will result in a BC30451 error in the debug window when debugging objects. -Although there is no impact on the production code, providing a wrong value can lead to difficulties when debugging the application.

+

The DebuggerDisplayAttribute constructor takes a single mandatory argument: the string to be displayed in the value column for +instances of the type. Any text within curly braces is evaluated as the name of a field or property, or any complex expression containing method calls +and operators.

+

Naming a non-existent member between curly braces will result in a BC30451 error in the debug window when debugging objects. Although there is no +impact on the production code, providing a wrong value can lead to difficulties when debugging the application.

This rule raises an issue when text specified between curly braces refers to members that don’t exist in the current context.

Noncompliant Code Example

diff --git a/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json b/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json
index 4c00453c9e5..7138b901485 100644
--- a/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json
+++ b/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json
@@ -3,5 +3,5 @@
   "languages": [
     "CSH"
   ],
-  "latest-update": "2023-02-16T13:29:06.541771900Z"
+  "latest-update": "2023-03-02T10:14:13.012961900Z"
 }
\ No newline at end of file
diff --git a/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json b/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json
index b46d8a27db4..519076fbca6 100644
--- a/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json
+++ b/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json
@@ -3,5 +3,5 @@
   "languages": [
     "VBNET"
   ],
-  "latest-update": "2023-02-16T13:29:34.979573400Z"
+  "latest-update": "2023-03-02T10:14:52.653036700Z"
 }
\ No newline at end of file