Skip to content

Commit

Permalink
Automated deployment to GitHub Pages: 7dd8e65
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 5, 2024
1 parent 662df6e commit d5d9e3c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,21 @@ <h2 id='non-triggering-examples' class='heading'>Non Triggering Examples</h2>
<span class="p">}</span>
<span class="p">}</span>
</code></pre>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">C</span> <span class="p">{</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">foo</span><span class="p">()</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="n">foo</span> <span class="p">{}</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">bar</span><span class="p">(</span><span class="n">_</span> <span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="n">bar</span> <span class="p">{}</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">baz</span><span class="p">(</span><span class="n">_</span> <span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="nf">baz</span><span class="p">({})</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">qux</span><span class="p">(</span><span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="nf">qux</span><span class="p">(</span><span class="nv">c</span><span class="p">:</span> <span class="p">{})</span>
<span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h2 id='triggering-examples' class='heading'>Triggering Examples</h2>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">Foo</span> <span class="p">{</span>
<span class="err"></span><span class="k">override</span> <span class="kd">func</span> <span class="nf">bar</span><span class="p">()</span> <span class="p">{</span>
Expand Down
Binary file modified docsets/SwiftLintCore.tgz
Binary file not shown.
15 changes: 15 additions & 0 deletions unneeded_override.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,21 @@ <h2 id='non-triggering-examples' class='heading'>Non Triggering Examples</h2>
<span class="p">}</span>
<span class="p">}</span>
</code></pre>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">C</span> <span class="p">{</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">foo</span><span class="p">()</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="n">foo</span> <span class="p">{}</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">bar</span><span class="p">(</span><span class="n">_</span> <span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="n">bar</span> <span class="p">{}</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">baz</span><span class="p">(</span><span class="n">_</span> <span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="nf">baz</span><span class="p">({})</span>
<span class="p">}</span>
<span class="k">override</span> <span class="kd">func</span> <span class="nf">qux</span><span class="p">(</span><span class="nv">c</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="p">{</span>
<span class="k">super</span><span class="o">.</span><span class="nf">qux</span><span class="p">(</span><span class="nv">c</span><span class="p">:</span> <span class="p">{})</span>
<span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h2 id='triggering-examples' class='heading'>Triggering Examples</h2>
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">Foo</span> <span class="p">{</span>
<span class="err"></span><span class="k">override</span> <span class="kd">func</span> <span class="nf">bar</span><span class="p">()</span> <span class="p">{</span>
Expand Down

0 comments on commit d5d9e3c

Please sign in to comment.