Skip to content

Commit

Permalink
Deploying to gh-pages from @ e5a0528 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-marichal committed Dec 24, 2024
1 parent 33c84ea commit dd57f0a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions rules/S125/csharp-description.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,47 @@ <h2 id="_why_is_this_an_issue">Why is this an issue?</h2>
<div class="paragraph">
<p>Commented-out code should be deleted and can be retrieved from source control history if required.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_how_to_fix_it">How to fix it</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Delete the commented out code.</p>
</div>
<div class="sect2">
<h3 id="_code_examples">Code examples</h3>
<div class="sect3">
<h4 id="_noncompliant_code_example">Noncompliant code example</h4>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-csharp" data-lang="csharp">void Method(string s)
{
// if (s.StartsWith('A'))
// {
// s = s.Substring(1);
// }

// Do something...
}</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_compliant_solution">Compliant solution</h4>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-csharp" data-lang="csharp">void Method(string s)
{
// Do something...
}</code></pre>
</div>
</div>
<hr>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_implementation_specification">Implementation Specification</h2>
<div class="sectionbody">
Expand Down
2 changes: 1 addition & 1 deletion rules/rule-index.json

Large diffs are not rendered by default.

0 comments on commit dd57f0a

Please sign in to comment.