mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Deploying to gh-pages from @ 816c8b11cd
🚀
This commit is contained in:
parent
b115c7bec6
commit
3cce6274d7
123 changed files with 1366 additions and 1349 deletions
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -804,7 +804,7 @@ x <span class="o">!=</span> y <span class="c"># or x = !y</span></code></pre>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">
|
||||
ameba/rule/lint/ambiguous_assignment.cr
|
||||
</a>
|
||||
|
||||
|
@ -1186,7 +1186,7 @@ x <span class="o">!=</span> y <span class="c"># or x = !y</span></code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1367,7 +1367,7 @@ x <span class="o">!=</span> y <span class="c"># or x = !y</span></code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/ambiguous_assignment.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/ambiguous_assignment.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -799,7 +799,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">
|
||||
ameba/rule/lint/bad_directive.cr
|
||||
</a>
|
||||
|
||||
|
@ -1104,7 +1104,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1285,7 +1285,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/bad_directive.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/bad_directive.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -802,7 +802,7 @@ or negating the variable.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">
|
||||
ameba/rule/lint/comparison_to_boolean.cr
|
||||
</a>
|
||||
|
||||
|
@ -1182,7 +1182,7 @@ or negating the variable.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1363,7 +1363,7 @@ or negating the variable.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/comparison_to_boolean.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/comparison_to_boolean.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -800,7 +800,7 @@ committed into our codebase.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debug_calls.cr#L18" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debug_calls.cr#L18" target="_blank">
|
||||
ameba/rule/lint/debug_calls.cr
|
||||
</a>
|
||||
|
||||
|
@ -1106,7 +1106,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debug_calls.cr#L18" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debug_calls.cr#L18" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1315,7 +1315,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debug_calls.cr#L26" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debug_calls.cr#L26" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -795,7 +795,7 @@ committed into our codebase.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">
|
||||
ameba/rule/lint/debugger_statement.cr
|
||||
</a>
|
||||
|
||||
|
@ -1086,7 +1086,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1267,7 +1267,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/debugger_statement.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/debugger_statement.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -796,7 +796,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">
|
||||
ameba/rule/lint/duplicated_require.cr
|
||||
</a>
|
||||
|
||||
|
@ -1088,7 +1088,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1269,7 +1269,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/duplicated_require.cr#L23" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/duplicated_require.cr#L23" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -815,7 +815,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">
|
||||
ameba/rule/lint/empty_ensure.cr
|
||||
</a>
|
||||
|
||||
|
@ -1126,7 +1126,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1307,7 +1307,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_ensure.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_ensure.cr#L48" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -807,7 +807,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">
|
||||
ameba/rule/lint/empty_expression.cr
|
||||
</a>
|
||||
|
||||
|
@ -1197,7 +1197,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1378,7 +1378,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_expression.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_expression.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1394,7 +1394,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_expression.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_expression.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -817,7 +817,7 @@ loop <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">
|
||||
ameba/rule/lint/empty_loop.cr
|
||||
</a>
|
||||
|
||||
|
@ -1217,7 +1217,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1398,7 +1398,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_loop.cr#L49" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_loop.cr#L49" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1414,7 +1414,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_loop.cr#L55" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_loop.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1430,7 +1430,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/empty_loop.cr#L59" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/empty_loop.cr#L59" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -797,7 +797,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">
|
||||
ameba/rule/lint/hash_duplicated_key.cr
|
||||
</a>
|
||||
|
||||
|
@ -1090,7 +1090,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1271,7 +1271,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/hash_duplicated_key.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/hash_duplicated_key.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -803,7 +803,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">
|
||||
ameba/rule/lint/literal_in_condition.cr
|
||||
</a>
|
||||
|
||||
|
@ -1194,7 +1194,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1263,7 +1263,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1391,7 +1391,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1407,7 +1407,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1423,7 +1423,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_condition.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_condition.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -799,7 +799,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">
|
||||
ameba/rule/lint/literal_in_interpolation.cr
|
||||
</a>
|
||||
|
||||
|
@ -1171,7 +1171,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1352,7 +1352,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/literal_in_interpolation.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literal_in_interpolation.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<script type="text/javascript" src="../../../js/doc.js"></script>
|
||||
|
||||
<meta name="repository-name" content="ameba">
|
||||
<title>Ameba::Rule::Lint::StaticComparison - ameba master</title>
|
||||
<title>Ameba::Rule::Lint::LiteralsComparison - ameba master</title>
|
||||
<script type="text/javascript">
|
||||
CrystalDocs.base_path = "../../../";
|
||||
</script>
|
||||
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" current" data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" current" data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -730,12 +730,12 @@
|
|||
<div class="main-content">
|
||||
<h1 class="type-name">
|
||||
|
||||
<span class="kind">class</span> Ameba::Rule::Lint::StaticComparison
|
||||
<span class="kind">class</span> Ameba::Rule::Lint::LiteralsComparison
|
||||
|
||||
</h1>
|
||||
|
||||
|
||||
<ul class="superclass-hierarchy"><li class="superclass"><a href="../../../Ameba/Rule/Lint/StaticComparison.html">Ameba::Rule::Lint::StaticComparison</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/Lint/LiteralsComparison.html">Ameba::Rule::Lint::LiteralsComparison</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>
|
||||
|
||||
|
||||
|
||||
|
@ -749,12 +749,13 @@
|
|||
Overview
|
||||
</h2>
|
||||
|
||||
<p>This rule is used to identify static comparisons -
|
||||
the ones that will always have the same result.</p>
|
||||
<p>This rule is used to identify comparisons between two literals.</p>
|
||||
<p>They usually have the same result - except for non-primitive
|
||||
types like containers, range or regex.</p>
|
||||
<p>For example, this will be always false:</p>
|
||||
<pre><code class="language-crystal"><span class="s">"foo"</span> <span class="o">==</span> <span class="n">42</span></code></pre>
|
||||
<p>YAML configuration example:</p>
|
||||
<pre><code class="language-crystal"><span class="t">Lint</span><span class="o">/</span><span class="t">StaticComparison</span>:
|
||||
<pre><code class="language-crystal"><span class="t">Lint</span><span class="o">/</span><span class="t">LiteralsComparison</span>:
|
||||
<span class="t">Enabled</span>: <span class="n">true</span></code></pre>
|
||||
|
||||
|
||||
|
@ -798,8 +799,8 @@ the ones that will always have the same result.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/static_comparison.cr#L17" target="_blank">
|
||||
ameba/rule/lint/static_comparison.cr
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literals_comparison.cr#L20" target="_blank">
|
||||
ameba/rule/lint/literals_comparison.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
@ -819,18 +820,33 @@ the ones that will always have the same result.</p>
|
|||
|
||||
<dl>
|
||||
|
||||
<dt class="entry-const" id="DYNAMIC_LITERAL_TYPES">
|
||||
<strong>DYNAMIC_LITERAL_TYPES</strong> = <code>{<span class="t">Crystal</span><span class="t">::</span><span class="t">RangeLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">RegexLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">TupleLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">NamedTupleLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">ArrayLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">HashLiteral</span>}</code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="LITERAL_TYPES">
|
||||
<strong>LITERAL_TYPES</strong> = <code><span class="t">PRIMITIVE_LITERAL_TYPES</span> <span class="o">+</span> <span class="t">DYNAMIC_LITERAL_TYPES</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG">
|
||||
<strong>MSG</strong> = <code><span class="s">"Comparison always evaluates to %s"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG_LIKELY">
|
||||
<strong>MSG_LIKELY</strong> = <code><span class="s">"Comparison most likely evaluates to %s"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="OP_NAMES">
|
||||
<strong>OP_NAMES</strong> = <code>[<span class="s">"==="</span>, <span class="s">"=="</span>, <span class="s">"!="</span>] <span class="k">of</span> <span class="t">::</span><span class="t">String</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="PRIMITIVES">
|
||||
<strong>PRIMITIVES</strong> = <code>{<span class="t">Crystal</span><span class="t">::</span><span class="t">NilLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">BoolLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">NumberLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">CharLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">StringLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">SymbolLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">RangeLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">RegexLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">TupleLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">NamedTupleLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">ArrayLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">HashLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">ProcLiteral</span>}</code>
|
||||
<dt class="entry-const" id="PRIMITIVE_LITERAL_TYPES">
|
||||
<strong>PRIMITIVE_LITERAL_TYPES</strong> = <code>{<span class="t">Crystal</span><span class="t">::</span><span class="t">NilLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">BoolLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">NumberLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">CharLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">StringLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">SymbolLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">ProcLiteral</span>, <span class="t">Crystal</span><span class="t">::</span><span class="t">Path</span>}</code>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -856,7 +872,7 @@ the ones that will always have the same result.</p>
|
|||
<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>This rule is used to identify static comparisons - the ones that will always have the same result.</p></div>
|
||||
<div class="summary"><p>This rule is used to identify comparisons between two literals.</p></div>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -1167,19 +1183,20 @@ the ones that will always have the same result.</p>
|
|||
|
||||
<div class="doc">
|
||||
|
||||
<p>This rule is used to identify static comparisons -
|
||||
the ones that will always have the same result.</p>
|
||||
<p>This rule is used to identify comparisons between two literals.</p>
|
||||
<p>They usually have the same result - except for non-primitive
|
||||
types like containers, range or regex.</p>
|
||||
<p>For example, this will be always false:</p>
|
||||
<pre><code class="language-crystal"><span class="s">"foo"</span> <span class="o">==</span> <span class="n">42</span></code></pre>
|
||||
<p>YAML configuration example:</p>
|
||||
<pre><code class="language-crystal"><span class="t">Lint</span><span class="o">/</span><span class="t">StaticComparison</span>:
|
||||
<pre><code class="language-crystal"><span class="t">Lint</span><span class="o">/</span><span class="t">LiteralsComparison</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/23ca87ff/src/ameba/rule/lint/static_comparison.cr#L17" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literals_comparison.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1360,7 +1377,7 @@ the ones that will always have the same result.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/static_comparison.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/literals_comparison.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" current" data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -805,7 +805,7 @@ alice <span class="o">=</span> names.find { <span class="o">|</span>name<span cl
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil.cr#L28" target="_blank">
|
||||
ameba/rule/lint/not_nil.cr
|
||||
</a>
|
||||
|
||||
|
@ -1193,7 +1193,7 @@ alice <span class="o">=</span> names.find { <span class="o">|</span>name<span cl
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1374,7 +1374,7 @@ alice <span class="o">=</span> names.find { <span class="o">|</span>name<span cl
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1390,7 +1390,7 @@ alice <span class="o">=</span> names.find { <span class="o">|</span>name<span cl
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -799,7 +799,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil_after_no_bang.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil_after_no_bang.cr#L22" target="_blank">
|
||||
ameba/rule/lint/not_nil_after_no_bang.cr
|
||||
</a>
|
||||
|
||||
|
@ -1191,7 +1191,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil_after_no_bang.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil_after_no_bang.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1372,7 +1372,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil_after_no_bang.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil_after_no_bang.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1388,7 +1388,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/not_nil_after_no_bang.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/not_nil_after_no_bang.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -801,7 +801,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">
|
||||
ameba/rule/lint/percent_array.cr
|
||||
</a>
|
||||
|
||||
|
@ -1118,7 +1118,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1355,7 +1355,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/percent_array.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/percent_array.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -800,7 +800,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">
|
||||
ameba/rule/lint/rand_zero.cr
|
||||
</a>
|
||||
|
||||
|
@ -1096,7 +1096,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1277,7 +1277,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/rand_zero.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/rand_zero.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -800,7 +800,7 @@ which is redundant.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">
|
||||
ameba/rule/lint/redundant_string_coercion.cr
|
||||
</a>
|
||||
|
||||
|
@ -1173,7 +1173,7 @@ which is redundant.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1354,7 +1354,7 @@ which is redundant.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_string_coercion.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_string_coercion.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -805,7 +805,7 @@ collection.each_with_index <span class="k">do</span> <span class="o">|</span>e,
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">
|
||||
ameba/rule/lint/redundant_with_index.cr
|
||||
</a>
|
||||
|
||||
|
@ -1087,7 +1087,7 @@ collection.each_with_index <span class="k">do</span> <span class="o">|</span>e,
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1268,7 +1268,7 @@ collection.each_with_index <span class="k">do</span> <span class="o">|</span>e,
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_index.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_index.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -805,7 +805,7 @@ collection.each_with_object(<span class="n">0</span>) <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">
|
||||
ameba/rule/lint/redundant_with_object.cr
|
||||
</a>
|
||||
|
||||
|
@ -1106,7 +1106,7 @@ collection.each_with_object(<span class="n">0</span>) <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1287,7 +1287,7 @@ collection.each_with_object(<span class="n">0</span>) <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/redundant_with_object.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/redundant_with_object.cr#L37" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -813,7 +813,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">
|
||||
ameba/rule/lint/shadowed_argument.cr
|
||||
</a>
|
||||
|
||||
|
@ -1127,7 +1127,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1308,7 +1308,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_argument.cr#L49" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_argument.cr#L49" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1324,7 +1324,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_argument.cr#L45" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_argument.cr#L45" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -811,7 +811,7 @@ exception is rescued.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">
|
||||
ameba/rule/lint/shadowed_exception.cr
|
||||
</a>
|
||||
|
||||
|
@ -1118,7 +1118,7 @@ exception is rescued.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1299,7 +1299,7 @@ exception is rescued.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowed_exception.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowed_exception.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -808,7 +808,7 @@ for block or proc arguments.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowing_outer_local_var.cr#L33" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowing_outer_local_var.cr#L33" target="_blank">
|
||||
ameba/rule/lint/shadowing_outer_local_var.cr
|
||||
</a>
|
||||
|
||||
|
@ -1122,7 +1122,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowing_outer_local_var.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowing_outer_local_var.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1303,7 +1303,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowing_outer_local_var.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowing_outer_local_var.cr#L48" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1319,7 +1319,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowing_outer_local_var.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowing_outer_local_var.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1335,7 +1335,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shadowing_outer_local_var.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shadowing_outer_local_var.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -823,7 +823,7 @@ the second one.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">
|
||||
ameba/rule/lint/shared_var_in_fiber.cr
|
||||
</a>
|
||||
|
||||
|
@ -1147,7 +1147,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1328,7 +1328,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shared_var_in_fiber.cr#L63" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shared_var_in_fiber.cr#L63" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1344,7 +1344,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/shared_var_in_fiber.cr#L59" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/shared_var_in_fiber.cr#L59" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -821,7 +821,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">
|
||||
ameba/rule/lint/spec_focus.cr
|
||||
</a>
|
||||
|
||||
|
@ -1148,7 +1148,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1329,7 +1329,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/spec_focus.cr#L61" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/spec_focus.cr#L61" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1345,7 +1345,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/spec_focus.cr#L55" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/spec_focus.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" current" data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -800,7 +800,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/syntax.cr#L21" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/syntax.cr#L21" target="_blank">
|
||||
ameba/rule/lint/syntax.cr
|
||||
</a>
|
||||
|
||||
|
@ -1077,7 +1077,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/syntax.cr#L21" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/syntax.cr#L21" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1258,7 +1258,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/syntax.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/syntax.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -803,7 +803,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">
|
||||
ameba/rule/lint/unneeded_disable_directive.cr
|
||||
</a>
|
||||
|
||||
|
@ -1102,7 +1102,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1283,7 +1283,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unneeded_disable_directive.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unneeded_disable_directive.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -815,7 +815,7 @@ loop <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">
|
||||
ameba/rule/lint/unreachable_code.cr
|
||||
</a>
|
||||
|
||||
|
@ -1208,7 +1208,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1389,7 +1389,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unreachable_code.cr#L57" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unreachable_code.cr#L57" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1405,7 +1405,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unreachable_code.cr#L53" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unreachable_code.cr#L53" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -804,7 +804,7 @@ For example, this is considered invalid:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">
|
||||
ameba/rule/lint/unused_argument.cr
|
||||
</a>
|
||||
|
||||
|
@ -1149,7 +1149,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1414,7 +1414,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1430,7 +1430,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1446,7 +1446,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L51" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L51" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1462,7 +1462,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/unused_argument.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/unused_argument.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -803,7 +803,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">
|
||||
ameba/rule/lint/useless_assign.cr
|
||||
</a>
|
||||
|
||||
|
@ -1107,7 +1107,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1288,7 +1288,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_assign.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_assign.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1304,7 +1304,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_assign.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_assign.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -366,6 +366,11 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/LiteralsComparison" data-name="ameba::rule::lint::literalscomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/LiteralsComparison.html">LiteralsComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/NotNil" data-name="ameba::rule::lint::notnil">
|
||||
<a href="../../../Ameba/Rule/Lint/NotNil.html">NotNil</a>
|
||||
|
||||
|
@ -426,11 +431,6 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/StaticComparison" data-name="ameba::rule::lint::staticcomparison">
|
||||
<a href="../../../Ameba/Rule/Lint/StaticComparison.html">StaticComparison</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class=" " data-id="ameba/Ameba/Rule/Lint/Syntax" data-name="ameba::rule::lint::syntax">
|
||||
<a href="../../../Ameba/Rule/Lint/Syntax.html">Syntax</a>
|
||||
|
||||
|
@ -808,7 +808,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">
|
||||
ameba/rule/lint/useless_condition_in_when.cr
|
||||
</a>
|
||||
|
||||
|
@ -1112,7 +1112,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1293,7 +1293,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/23ca87ff/src/ameba/rule/lint/useless_condition_in_when.cr#L50" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/816c8b11/src/ameba/rule/lint/useless_condition_in_when.cr#L50" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue