Skip to content

Commit

Permalink
Update ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Mar 6, 2023
1 parent e0062bd commit 032c6b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
@@ -1,7 +1,7 @@
{
"issues": [
{
"id": "S2445",
"id": "S6507",
"message": "Do not lock on local variable 'typeMap', use a readonly field instead.",
"location": {
"uri": "sources\Automapper\src\AutoMapper\Configuration\MapperConfiguration.cs",
Expand Down
@@ -1,7 +1,7 @@
{
"issues": [
{
"id": "S2445",
"id": "S6507",
"message": "Do not lock on local variable 'typeMap', use a readonly field instead.",
"location": {
"uri": "sources\Automapper\src\AutoMapper\Configuration\MapperConfiguration.cs",
Expand Down
5 changes: 2 additions & 3 deletions analyzers/rspec/cs/S6507_c#.html
Expand Up @@ -4,8 +4,8 @@ <h2>Noncompliant Code Example</h2>
<pre>
private void DoSomething()
{
object local;
// ...
object local = new object();
// Code potentially modifying the local variable ...

lock (local) // Noncompliant
{
Expand All @@ -29,7 +29,6 @@ <h2>See</h2>
<ul>
<li> <a href="https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock">Lock Statement</a> - lock statement - ensure
exclusive access to a shared resource </li>
<li> <a href="https://learn.microsoft.com/en-us/dotnet/api/system.string.intern">String.Intern</a> - <code>String.Intern(String)</code> Method </li>
<li> <a href="https://cwe.mitre.org/data/definitions/412">MITRE, CWE-412</a> - Unrestricted Externally Accessible Lock </li>
<li> <a href="https://cwe.mitre.org/data/definitions/413">MITRE, CWE-413</a> - Improper Resource Locking </li>
</ul>
Expand Down

0 comments on commit 032c6b2

Please sign in to comment.