Deploying to gh-pages from @ 80532da357 🚀

This commit is contained in:
veelenga 2022-10-14 18:10:09 +00:00
parent 5691d407a5
commit 017e9a8722
121 changed files with 1270 additions and 1270 deletions

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Crystal Docs 1.4.1">
<meta name="generator" content="Crystal Docs 1.5.0">
<meta name="crystal_docs.project_version" content="master">
<meta name="crystal_docs.project_name" content="ameba">
@ -768,17 +768,17 @@ ok
<span class="c"># bad</span>
<span class="k">if</span> something
foo || raise(<span class="s">&quot;exception&quot;</span>)
foo <span class="o">||</span> raise(<span class="s">&quot;exception&quot;</span>)
<span class="k">else</span>
ok
<span class="k">end</span>
<span class="c"># good</span>
foo || raise(<span class="s">&quot;exception&quot;</span>) <span class="k">if</span> something
foo <span class="o">||</span> raise(<span class="s">&quot;exception&quot;</span>) <span class="k">if</span> something
ok</code></pre>
<p>YAML configuration example:</p>
<pre><code class="language-crystal">Style/GuardClause:
Enabled: true</code></pre>
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">GuardClause</span>:
<span class="t">Enabled</span>: <span class="n">true</span></code></pre>
@ -821,7 +821,7 @@ ok</code></pre>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">
ameba/rule/style/guard_clause.cr
</a>
@ -1219,23 +1219,23 @@ ok
<span class="c"># bad</span>
<span class="k">if</span> something
foo || raise(<span class="s">&quot;exception&quot;</span>)
foo <span class="o">||</span> raise(<span class="s">&quot;exception&quot;</span>)
<span class="k">else</span>
ok
<span class="k">end</span>
<span class="c"># good</span>
foo || raise(<span class="s">&quot;exception&quot;</span>) <span class="k">if</span> something
foo <span class="o">||</span> raise(<span class="s">&quot;exception&quot;</span>) <span class="k">if</span> something
ok</code></pre>
<p>YAML configuration example:</p>
<pre><code class="language-crystal">Style/GuardClause:
Enabled: true</code></pre>
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">GuardClause</span>:
<span class="t">Enabled</span>: <span class="n">true</span></code></pre>
</div>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">View source</a>]
</div>
</div>
@ -1349,7 +1349,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L175" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L175" target="_blank">View source</a>]
</div>
</div>
@ -1393,7 +1393,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L69" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L69" target="_blank">View source</a>]
</div>
</div>
@ -1409,7 +1409,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L83" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L83" target="_blank">View source</a>]
</div>
</div>
@ -1425,7 +1425,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/97acedae/src/ameba/rule/style/guard_clause.cr#L65" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/80532da3/src/ameba/rule/style/guard_clause.cr#L65" target="_blank">View source</a>]
</div>
</div>