Skip to content

Commit

Permalink
Bring back RSPEC changes (#5276)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-epure-sonarsource authored Jan 14, 2022
1 parent 48071ce commit 7e01861
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion analyzers/rspec/cs/S109_c#.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ <h2>Compliant Solution</h2>
}
</pre>
<h2>Exceptions</h2>
<p>This rule doesn’t raise an issue when the magic number is used as part of the <code>GetHashCode</code> method or a variable/field declaration.</p>
<p>This rule doesn’t raise an issue when the magic number is used as part of:</p>
<ul>
<li> the <code>GetHashCode</code> method </li>
<li> a variable/field declaration </li>
<li> the single argument of an attribute </li>
<li> a named argument for a method or attribute </li>
<li> a constructor call </li>
</ul>

Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ <h2>Compliant Solution</h2>
}
</pre>
<h2>Exceptions</h2>
<p>This rule doesn’t raise an issue when the magic number is used as part of the <code>GetHashCode</code> method or a variable/field declaration.</p>
<p>This rule doesn’t raise an issue when the magic number is used as part of:</p>
<ul>
<li> the <code>GetHashCode</code> method </li>
<li> a variable/field declaration </li>
<li> the single argument of an attribute </li>
<li> a named argument for a method or attribute </li>
<li> a constructor call </li>
</ul>

0 comments on commit 7e01861

Please sign in to comment.