Skip to content

Commit

Permalink
Add specific message when locking on a field from another class
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Feb 22, 2023
1 parent ccdd0a7 commit c2bb4eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rules/S2445/csharp/message.adoc
Expand Up @@ -4,6 +4,8 @@

"xxx" is a local variable, and should not be used for locking.

Use field from "yyy" for locking.

Locking on a new instance is a no-op.

Strings can be interned, and should not be used for locking.
Expand Down

0 comments on commit c2bb4eb

Please sign in to comment.