Deploying to gh-pages from @ a3e5f2d206 🚀

This commit is contained in:
Sija 2022-11-19 23:42:38 +00:00
parent b2601a314e
commit 68b13e74dc
125 changed files with 1413 additions and 1406 deletions

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -809,7 +809,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/constant_names.cr#L24" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/constant_names.cr#L24" target="_blank">
ameba/rule/style/constant_names.cr
</a>
@ -1104,7 +1104,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/constant_names.cr#L24" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/constant_names.cr#L24" target="_blank">View source</a>]
</div>
</div>
@ -1285,7 +1285,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/constant_names.cr#L31" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/constant_names.cr#L31" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -846,7 +846,7 @@ ok</code></pre>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">
ameba/rule/style/guard_clause.cr
</a>
@ -1280,7 +1280,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L54" target="_blank">View source</a>]
</div>
</div>
@ -1433,7 +1433,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L177" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L177" target="_blank">View source</a>]
</div>
</div>
@ -1477,7 +1477,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L69" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L69" target="_blank">View source</a>]
</div>
</div>
@ -1493,7 +1493,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L83" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L83" target="_blank">View source</a>]
</div>
</div>
@ -1509,7 +1509,7 @@ ok</code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/guard_clause.cr#L65" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/guard_clause.cr#L65" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -826,7 +826,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># =&gt; tr
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">
ameba/rule/style/is_a_filter.cr
</a>
@ -1163,7 +1163,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># =&gt; tr
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">View source</a>]
</div>
</div>
@ -1372,7 +1372,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># =&gt; tr
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_filter.cr#L60" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_filter.cr#L60" target="_blank">View source</a>]
</div>
</div>
@ -1388,7 +1388,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># =&gt; tr
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_filter.cr#L51" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_filter.cr#L51" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -807,7 +807,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">
ameba/rule/style/is_a_nil.cr
</a>
@ -1105,7 +1105,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">View source</a>]
</div>
</div>
@ -1286,7 +1286,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/is_a_nil.cr#L30" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/is_a_nil.cr#L30" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -814,7 +814,7 @@ large numbers more easily.</p>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
ameba/rule/style/large_numbers.cr
</a>
@ -1124,7 +1124,7 @@ large numbers more easily.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
</div>
</div>
@ -1333,7 +1333,7 @@ large numbers more easily.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -827,7 +827,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/method_names.cr#L40" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/method_names.cr#L40" target="_blank">
ameba/rule/style/method_names.cr
</a>
@ -1227,7 +1227,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/method_names.cr#L40" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/method_names.cr#L40" target="_blank">View source</a>]
</div>
</div>
@ -1408,7 +1408,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/method_names.cr#L49" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/method_names.cr#L49" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -813,7 +813,7 @@ that is executed if a negated condition is NOT met.</p>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
ameba/rule/style/negated_conditions_in_unless.cr
</a>
@ -1112,7 +1112,7 @@ that is executed if a negated condition is NOT met.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
</div>
</div>
@ -1293,7 +1293,7 @@ that is executed if a negated condition is NOT met.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
</div>
</div>

View file

@ -13,7 +13,7 @@
<script type="text/javascript" src="../../../js/doc.js"></script>
<meta name="repository-name" content="ameba">
<title>Ameba::Rule::Style::RedundantParentheses - ameba master</title>
<title>Ameba::Rule::Style::ParenthesesAroundCondition - ameba master</title>
<script type="text/javascript">
CrystalDocs.base_path = "../../../";
</script>
@ -581,6 +581,11 @@
</li>
<li class=" current" data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" current" data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -740,12 +740,12 @@
<div class="main-content">
<h1 class="type-name">
<span class="kind">class</span> Ameba::Rule::Style::RedundantParentheses
<span class="kind">class</span> Ameba::Rule::Style::ParenthesesAroundCondition
</h1>
<ul class="superclass-hierarchy"><li class="superclass"><a href="../../../Ameba/Rule/Style/RedundantParentheses.html">Ameba::Rule::Style::RedundantParentheses</a></li><li class="superclass"><a href="../../../Ameba/Rule/Base.html">Ameba::Rule::Base</a></li><li class="superclass">Reference</li><li class="superclass">Object</li></ul>
<ul class="superclass-hierarchy"><li class="superclass"><a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">Ameba::Rule::Style::ParenthesesAroundCondition</a></li><li class="superclass"><a href="../../../Ameba/Rule/Base.html">Ameba::Rule::Base</a></li><li class="superclass">Reference</li><li class="superclass">Object</li></ul>
@ -759,7 +759,8 @@
Overview
</h2>
<p>A rule that disallows redundant parentheses around control expressions.</p>
<p>A rule that checks for the presence of superfluous parentheses
around the condition of <code>if</code>, <code>unless</code>, <code>case,</code>while<code>and</code>until`.</p>
<p>For example, this is considered invalid:</p>
<pre><code class="language-crystal"><span class="k">if</span> (foo <span class="o">==</span> <span class="n">42</span>)
do_something
@ -769,10 +770,10 @@
do_something
<span class="k">end</span></code></pre>
<p>YAML configuration example:</p>
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">RedundantParentheses</span>:
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">ParenthesesAroundCondition</span>:
<span class="t">Enabled</span>: <span class="n">true</span>
<span class="t">ExcludeTernary</span>: <span class="n">false</span>
<span class="t">ExcludeAssignments</span>: <span class="n">false</span></code></pre>
<span class="t">AllowSafeAssignment</span>: <span class="n">false</span></code></pre>
@ -813,8 +814,8 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_parentheses.cr#L28" target="_blank">
ameba/rule/style/redundant_parentheses.cr
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/parentheses_around_condition.cr#L29" target="_blank">
ameba/rule/style/parentheses_around_condition.cr
</a>
<br/>
@ -834,8 +835,13 @@
<dl>
<dt class="entry-const" id="MSG">
<strong>MSG</strong> = <code><span class="s">&quot;Redundant parentheses&quot;</span></code>
<dt class="entry-const" id="MSG_MISSING">
<strong>MSG_MISSING</strong> = <code><span class="s">&quot;Missing parentheses&quot;</span></code>
</dt>
<dt class="entry-const" id="MSG_REDUNDANT">
<strong>MSG_REDUNDANT</strong> = <code><span class="s">&quot;Redundant parentheses&quot;</span></code>
</dt>
@ -861,7 +867,7 @@
<li class="entry-summary">
<a href="#new%28config%3Dnil%29-class-method" class="signature"><strong>.new</strong>(config = <span class="n">nil</span>)</a>
<div class="summary"><p>A rule that disallows redundant parentheses around control expressions.</p></div>
<div class="summary"><p>A rule that checks for the presence of superfluous parentheses around the condition of <code>if</code>, <code>unless</code>, <code>case,</code>while<code>and</code>until`.</p></div>
</li>
@ -900,6 +906,16 @@
</h2>
<ul class="list-summary">
<li class="entry-summary">
<a href="#allow_safe_assignment%3ABool-instance-method" class="signature"><strong>#allow_safe_assignment</strong> : Bool</a>
</li>
<li class="entry-summary">
<a href="#allow_safe_assignment%3D%28allow_safe_assignment%3ABool%29-instance-method" class="signature"><strong>#allow_safe_assignment=</strong>(allow_safe_assignment : Bool)</a>
</li>
<li class="entry-summary">
<a href="#description%3AString-instance-method" class="signature"><strong>#description</strong> : String</a>
@ -920,16 +936,6 @@
</li>
<li class="entry-summary">
<a href="#exclude_assignments%3ABool-instance-method" class="signature"><strong>#exclude_assignments</strong> : Bool</a>
</li>
<li class="entry-summary">
<a href="#exclude_assignments%3D%28exclude_assignments%3ABool%29-instance-method" class="signature"><strong>#exclude_assignments=</strong>(exclude_assignments : Bool)</a>
</li>
<li class="entry-summary">
<a href="#exclude_ternary%3ABool-instance-method" class="signature"><strong>#exclude_ternary</strong> : Bool</a>
@ -1113,7 +1119,8 @@
<div class="doc">
<p>A rule that disallows redundant parentheses around control expressions.</p>
<p>A rule that checks for the presence of superfluous parentheses
around the condition of <code>if</code>, <code>unless</code>, <code>case,</code>while<code>and</code>until`.</p>
<p>For example, this is considered invalid:</p>
<pre><code class="language-crystal"><span class="k">if</span> (foo <span class="o">==</span> <span class="n">42</span>)
do_something
@ -1123,16 +1130,16 @@
do_something
<span class="k">end</span></code></pre>
<p>YAML configuration example:</p>
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">RedundantParentheses</span>:
<pre><code class="language-crystal"><span class="t">Style</span><span class="o">/</span><span class="t">ParenthesesAroundCondition</span>:
<span class="t">Enabled</span>: <span class="n">true</span>
<span class="t">ExcludeTernary</span>: <span class="n">false</span>
<span class="t">ExcludeAssignments</span>: <span class="n">false</span></code></pre>
<span class="t">AllowSafeAssignment</span>: <span class="n">false</span></code></pre>
</div>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_parentheses.cr#L28" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/parentheses_around_condition.cr#L29" target="_blank">View source</a>]
</div>
</div>
@ -1190,6 +1197,34 @@
Instance Method Detail
</h2>
<div class="entry-detail" id="allow_safe_assignment:Bool-instance-method">
<div class="signature">
def <strong>allow_safe_assignment</strong> : Bool
<a class="method-permalink" href="#allow_safe_assignment%3ABool-instance-method">#</a>
</div>
<br/>
<div>
</div>
</div>
<div class="entry-detail" id="allow_safe_assignment=(allow_safe_assignment:Bool)-instance-method">
<div class="signature">
def <strong>allow_safe_assignment=</strong>(allow_safe_assignment : Bool)
<a class="method-permalink" href="#allow_safe_assignment%3D%28allow_safe_assignment%3ABool%29-instance-method">#</a>
</div>
<br/>
<div>
</div>
</div>
<div class="entry-detail" id="description:String-instance-method">
<div class="signature">
@ -1246,34 +1281,6 @@
</div>
</div>
<div class="entry-detail" id="exclude_assignments:Bool-instance-method">
<div class="signature">
def <strong>exclude_assignments</strong> : Bool
<a class="method-permalink" href="#exclude_assignments%3ABool-instance-method">#</a>
</div>
<br/>
<div>
</div>
</div>
<div class="entry-detail" id="exclude_assignments=(exclude_assignments:Bool)-instance-method">
<div class="signature">
def <strong>exclude_assignments=</strong>(exclude_assignments : Bool)
<a class="method-permalink" href="#exclude_assignments%3D%28exclude_assignments%3ABool%29-instance-method">#</a>
</div>
<br/>
<div>
</div>
</div>
<div class="entry-detail" id="exclude_ternary:Bool-instance-method">
<div class="signature">
@ -1369,7 +1376,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_parentheses.cr#L53" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/parentheses_around_condition.cr#L55" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" current" data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -811,7 +811,7 @@ the ones that are not valid Crystal code (e.g. <code>is_404?</code>).</p>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/predicate_name.cr#L26" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/predicate_name.cr#L26" target="_blank">
ameba/rule/style/predicate_name.cr
</a>
@ -1108,7 +1108,7 @@ the ones that are not valid Crystal code (e.g. <code>is_404?</code>).</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/predicate_name.cr#L26" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/predicate_name.cr#L26" target="_blank">View source</a>]
</div>
</div>
@ -1289,7 +1289,7 @@ the ones that are not valid Crystal code (e.g. <code>is_404?</code>).</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/predicate_name.cr#L33" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/predicate_name.cr#L33" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -838,7 +838,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">
ameba/rule/style/redundant_begin.cr
</a>
@ -1249,7 +1249,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">View source</a>]
</div>
</div>
@ -1430,7 +1430,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_begin.cr#L67" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_begin.cr#L67" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -873,7 +873,7 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">
ameba/rule/style/redundant_next.cr
</a>
@ -1344,7 +1344,7 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">View source</a>]
</div>
</div>
@ -1581,7 +1581,7 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_next.cr#L115" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_next.cr#L115" target="_blank">View source</a>]
</div>
</div>
@ -1597,7 +1597,7 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_next.cr#L111" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_next.cr#L111" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" current" data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -870,7 +870,7 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">
ameba/rule/style/redundant_return.cr
</a>
@ -1338,7 +1338,7 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">View source</a>]
</div>
</div>
@ -1575,7 +1575,7 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_return.cr#L112" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_return.cr#L112" target="_blank">View source</a>]
</div>
</div>
@ -1591,7 +1591,7 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/redundant_return.cr#L108" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/redundant_return.cr#L108" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -839,7 +839,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L54" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L54" target="_blank">
ameba/rule/style/type_names.cr
</a>
@ -1184,7 +1184,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L54" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L54" target="_blank">View source</a>]
</div>
</div>
@ -1365,7 +1365,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L69" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L69" target="_blank">View source</a>]
</div>
</div>
@ -1381,7 +1381,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L73" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L73" target="_blank">View source</a>]
</div>
</div>
@ -1397,7 +1397,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L77" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L77" target="_blank">View source</a>]
</div>
</div>
@ -1413,7 +1413,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L81" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L81" target="_blank">View source</a>]
</div>
</div>
@ -1429,7 +1429,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/type_names.cr#L85" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/type_names.cr#L85" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -826,7 +826,7 @@ an <code>if</code>, so the previous invalid example would become this:</p>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/unless_else.cr#L45" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/unless_else.cr#L45" target="_blank">
ameba/rule/style/unless_else.cr
</a>
@ -1138,7 +1138,7 @@ an <code>if</code>, so the previous invalid example would become this:</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/unless_else.cr#L45" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/unless_else.cr#L45" target="_blank">View source</a>]
</div>
</div>
@ -1319,7 +1319,7 @@ an <code>if</code>, so the previous invalid example would become this:</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/unless_else.cr#L52" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/unless_else.cr#L52" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -810,7 +810,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L25" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L25" target="_blank">
ameba/rule/style/variable_names.cr
</a>
@ -1123,7 +1123,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L25" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L25" target="_blank">View source</a>]
</div>
</div>
@ -1304,7 +1304,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L42" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L42" target="_blank">View source</a>]
</div>
</div>
@ -1320,7 +1320,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L46" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L46" target="_blank">View source</a>]
</div>
</div>
@ -1336,7 +1336,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L50" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L50" target="_blank">View source</a>]
</div>
</div>
@ -1364,7 +1364,7 @@ that are tested by this rule, it should add an issue.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/variable_names.cr#L38" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/variable_names.cr#L38" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -817,7 +817,7 @@ argument as a receiver, that can be collapsed into a short form.</p>
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">
ameba/rule/style/verbose_block.cr
</a>
@ -1282,7 +1282,7 @@ argument as a receiver, that can be collapsed into a short form.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">View source</a>]
</div>
</div>
@ -1659,7 +1659,7 @@ argument as a receiver, that can be collapsed into a short form.</p>
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/verbose_block.cr#L214" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/verbose_block.cr#L214" target="_blank">View source</a>]
</div>
</div>

View file

@ -581,6 +581,11 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/ParenthesesAroundCondition" data-name="ameba::rule::style::parenthesesaroundcondition">
<a href="../../../Ameba/Rule/Style/ParenthesesAroundCondition.html">ParenthesesAroundCondition</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/PredicateName" data-name="ameba::rule::style::predicatename">
<a href="../../../Ameba/Rule/Style/PredicateName.html">PredicateName</a>
@ -596,11 +601,6 @@
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantParentheses" data-name="ameba::rule::style::redundantparentheses">
<a href="../../../Ameba/Rule/Style/RedundantParentheses.html">RedundantParentheses</a>
</li>
<li class=" " data-id="ameba/Ameba/Rule/Style/RedundantReturn" data-name="ameba::rule::style::redundantreturn">
<a href="../../../Ameba/Rule/Style/RedundantReturn.html">RedundantReturn</a>
@ -813,7 +813,7 @@
</h2>
<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/while_true.cr#L28" target="_blank">
<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/while_true.cr#L28" target="_blank">
ameba/rule/style/while_true.cr
</a>
@ -1112,7 +1112,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/while_true.cr#L28" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/while_true.cr#L28" target="_blank">View source</a>]
</div>
</div>
@ -1293,7 +1293,7 @@
<br/>
<div>
[<a href="https://github.com/crystal-ameba/ameba/blob/496e8930/src/ameba/rule/style/while_true.cr#L35" target="_blank">View source</a>]
[<a href="https://github.com/crystal-ameba/ameba/blob/a3e5f2d2/src/ameba/rule/style/while_true.cr#L35" target="_blank">View source</a>]
</div>
</div>