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 @ d843afd962
🚀
This commit is contained in:
parent
d26105f90e
commit
6b8d5cc490
113 changed files with 940 additions and 685 deletions
|
@ -864,7 +864,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L29" target="_blank">
|
||||
ameba/rule/base.cr
|
||||
</a>
|
||||
|
||||
|
@ -1064,7 +1064,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L161" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L161" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1101,7 +1101,7 @@ that are tested by this rule, it should add an issue.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L107" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L107" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1125,7 +1125,7 @@ source.valid?</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1149,7 +1149,7 @@ the one of the given source.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L90" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L90" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1175,7 +1175,7 @@ the one of the given source.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L79" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L79" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1205,7 +1205,7 @@ though usually the macro <code>def_hash</code> can be used to generate this meth
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L111" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L111" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1232,7 +1232,7 @@ though usually the macro <code>def_hash</code> can be used to generate this meth
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L66" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L66" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1255,7 +1255,7 @@ usual rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L103" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L103" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1271,7 +1271,7 @@ usual rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1295,7 +1295,7 @@ Must be overriten for other type of rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L37" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1323,7 +1323,7 @@ Must be overriten for other type of rules.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/base.cr#L115" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/base.cr#L115" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,21 +716,21 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/line_length.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/line_length.cr#L1" target="_blank">
|
||||
ameba/rule/layout/line_length.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_blank_lines.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_blank_lines.cr#L1" target="_blank">
|
||||
ameba/rule/layout/trailing_blank_lines.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_whitespace.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_whitespace.cr#L1" target="_blank">
|
||||
ameba/rule/layout/trailing_whitespace.cr
|
||||
</a>
|
||||
|
||||
|
|
|
@ -749,7 +749,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/line_length.cr#L11" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/line_length.cr#L11" target="_blank">
|
||||
ameba/rule/layout/line_length.cr
|
||||
</a>
|
||||
|
||||
|
@ -1039,7 +1039,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/line_length.cr#L11" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/line_length.cr#L11" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1209,7 +1209,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/line_length.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/line_length.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -748,7 +748,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_blank_lines.cr#L10" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_blank_lines.cr#L10" target="_blank">
|
||||
ameba/rule/layout/trailing_blank_lines.cr
|
||||
</a>
|
||||
|
||||
|
@ -1032,7 +1032,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_blank_lines.cr#L10" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_blank_lines.cr#L10" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1174,7 +1174,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_blank_lines.cr#L18" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_blank_lines.cr#L18" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -748,7 +748,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_whitespace.cr#L10" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_whitespace.cr#L10" target="_blank">
|
||||
ameba/rule/layout/trailing_whitespace.cr
|
||||
</a>
|
||||
|
||||
|
@ -1027,7 +1027,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_whitespace.cr#L10" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_whitespace.cr#L10" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1169,7 +1169,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/layout/trailing_whitespace.cr#L17" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/layout/trailing_whitespace.cr#L17" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,189 +716,189 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/ambiguous_assignment.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/ambiguous_assignment.cr#L1" target="_blank">
|
||||
ameba/rule/lint/ambiguous_assignment.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/bad_directive.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/bad_directive.cr#L1" target="_blank">
|
||||
ameba/rule/lint/bad_directive.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/comparison_to_boolean.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/comparison_to_boolean.cr#L1" target="_blank">
|
||||
ameba/rule/lint/comparison_to_boolean.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/debugger_statement.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/debugger_statement.cr#L1" target="_blank">
|
||||
ameba/rule/lint/debugger_statement.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/duplicated_require.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/duplicated_require.cr#L1" target="_blank">
|
||||
ameba/rule/lint/duplicated_require.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_ensure.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_ensure.cr#L1" target="_blank">
|
||||
ameba/rule/lint/empty_ensure.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_expression.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_expression.cr#L1" target="_blank">
|
||||
ameba/rule/lint/empty_expression.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L1" target="_blank">
|
||||
ameba/rule/lint/empty_loop.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/hash_duplicated_key.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/hash_duplicated_key.cr#L1" target="_blank">
|
||||
ameba/rule/lint/hash_duplicated_key.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L1" target="_blank">
|
||||
ameba/rule/lint/literal_in_condition.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_interpolation.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_interpolation.cr#L1" target="_blank">
|
||||
ameba/rule/lint/literal_in_interpolation.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/percent_array.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/percent_array.cr#L1" target="_blank">
|
||||
ameba/rule/lint/percent_array.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/rand_zero.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/rand_zero.cr#L1" target="_blank">
|
||||
ameba/rule/lint/rand_zero.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_string_coercion.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_string_coercion.cr#L1" target="_blank">
|
||||
ameba/rule/lint/redundant_string_coercion.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_with_index.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_index.cr#L1" target="_blank">
|
||||
ameba/rule/lint/redundant_with_index.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_with_object.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_object.cr#L1" target="_blank">
|
||||
ameba/rule/lint/redundant_with_object.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_argument.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_argument.cr#L1" target="_blank">
|
||||
ameba/rule/lint/shadowed_argument.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_exception.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_exception.cr#L1" target="_blank">
|
||||
ameba/rule/lint/shadowed_exception.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L1" target="_blank">
|
||||
ameba/rule/lint/shadowing_local_outer_var.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shared_var_in_fiber.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shared_var_in_fiber.cr#L1" target="_blank">
|
||||
ameba/rule/lint/shared_var_in_fiber.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/spec_focus.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/spec_focus.cr#L1" target="_blank">
|
||||
ameba/rule/lint/spec_focus.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/syntax.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/syntax.cr#L1" target="_blank">
|
||||
ameba/rule/lint/syntax.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unneeded_disable_directive.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unneeded_disable_directive.cr#L1" target="_blank">
|
||||
ameba/rule/lint/unneeded_disable_directive.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unreachable_code.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unreachable_code.cr#L1" target="_blank">
|
||||
ameba/rule/lint/unreachable_code.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L1" target="_blank">
|
||||
ameba/rule/lint/unused_argument.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_assign.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_assign.cr#L1" target="_blank">
|
||||
ameba/rule/lint/useless_assign.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_condition_in_when.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_condition_in_when.cr#L1" target="_blank">
|
||||
ameba/rule/lint/useless_condition_in_when.cr
|
||||
</a>
|
||||
|
||||
|
|
|
@ -759,7 +759,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/7b437fbd/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">
|
||||
ameba/rule/lint/ambiguous_assignment.cr
|
||||
</a>
|
||||
|
||||
|
@ -895,6 +895,11 @@ x <span class="o">!=</span> y <span class="c"># or x = !y</span></code></pre>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1111,7 +1116,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/7b437fbd/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/ambiguous_assignment.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1253,7 +1258,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/7b437fbd/src/ameba/rule/lint/ambiguous_assignment.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/ambiguous_assignment.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -754,7 +754,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">
|
||||
ameba/rule/lint/bad_directive.cr
|
||||
</a>
|
||||
|
||||
|
@ -1049,7 +1049,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/bad_directive.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1191,7 +1191,7 @@ to disable a rule that even doesn't exist:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/bad_directive.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/bad_directive.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -755,7 +755,7 @@ or negating the variable.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">
|
||||
ameba/rule/lint/comparison_to_boolean.cr
|
||||
</a>
|
||||
|
||||
|
@ -1046,7 +1046,7 @@ or negating the variable.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/comparison_to_boolean.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1188,7 +1188,7 @@ or negating the variable.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/comparison_to_boolean.cr#L31" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/comparison_to_boolean.cr#L31" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -750,7 +750,7 @@ committed into our codebase.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">
|
||||
ameba/rule/lint/debugger_statement.cr
|
||||
</a>
|
||||
|
||||
|
@ -1031,7 +1031,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/debugger_statement.cr#L13" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1173,7 +1173,7 @@ committed into our codebase.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/debugger_statement.cr#L20" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/debugger_statement.cr#L20" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -751,7 +751,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">
|
||||
ameba/rule/lint/duplicated_require.cr
|
||||
</a>
|
||||
|
||||
|
@ -1033,7 +1033,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/duplicated_require.cr#L16" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1175,7 +1175,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/duplicated_require.cr#L23" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/duplicated_require.cr#L23" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -770,7 +770,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">
|
||||
ameba/rule/lint/empty_ensure.cr
|
||||
</a>
|
||||
|
||||
|
@ -1071,7 +1071,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_ensure.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1213,7 +1213,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_ensure.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_ensure.cr#L48" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -762,7 +762,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">
|
||||
ameba/rule/lint/empty_expression.cr
|
||||
</a>
|
||||
|
||||
|
@ -903,6 +903,11 @@
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1122,7 +1127,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_expression.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1264,7 +1269,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_expression.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_expression.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1280,7 +1285,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_expression.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_expression.cr#L48" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -772,7 +772,7 @@ loop <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">
|
||||
ameba/rule/lint/empty_loop.cr
|
||||
</a>
|
||||
|
||||
|
@ -913,6 +913,11 @@ loop <span class="k">do</span>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1142,7 +1147,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1284,7 +1289,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L49" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L49" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1300,7 +1305,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L55" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1316,7 +1321,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/empty_loop.cr#L59" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/empty_loop.cr#L59" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -752,7 +752,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">
|
||||
ameba/rule/lint/hash_duplicated_key.cr
|
||||
</a>
|
||||
|
||||
|
@ -1035,7 +1035,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/hash_duplicated_key.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1177,7 +1177,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/hash_duplicated_key.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/hash_duplicated_key.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -758,7 +758,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">
|
||||
ameba/rule/lint/literal_in_condition.cr
|
||||
</a>
|
||||
|
||||
|
@ -904,6 +904,11 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1119,7 +1124,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1149,7 +1154,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1277,7 +1282,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1293,7 +1298,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1309,7 +1314,7 @@ replaced with either the body of the construct, or deleted entirely.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_condition.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_condition.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -754,7 +754,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">
|
||||
ameba/rule/lint/literal_in_interpolation.cr
|
||||
</a>
|
||||
|
||||
|
@ -885,6 +885,11 @@ that contain a literal value instead of a variable or function.</p>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1096,7 +1101,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_interpolation.cr#L18" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1238,7 +1243,7 @@ that contain a literal value instead of a variable or function.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/literal_in_interpolation.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/literal_in_interpolation.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -756,7 +756,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">
|
||||
ameba/rule/lint/percent_array.cr
|
||||
</a>
|
||||
|
||||
|
@ -1063,7 +1063,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/percent_array.cr#L26" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1261,7 +1261,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/percent_array.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/percent_array.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -755,7 +755,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">
|
||||
ameba/rule/lint/rand_zero.cr
|
||||
</a>
|
||||
|
||||
|
@ -1041,7 +1041,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/rand_zero.cr#L25" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1183,7 +1183,7 @@ rand(<span class="n">2</span>)</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/rand_zero.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/rand_zero.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -755,7 +755,7 @@ which is redundant.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">
|
||||
ameba/rule/lint/redundant_string_coercion.cr
|
||||
</a>
|
||||
|
||||
|
@ -886,6 +886,11 @@ which is redundant.</p>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1098,7 +1103,7 @@ which is redundant.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_string_coercion.cr#L23" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1240,7 +1245,7 @@ which is redundant.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/redundant_string_coercion.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_string_coercion.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -760,7 +760,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/7b437fbd/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">
|
||||
ameba/rule/lint/redundant_with_index.cr
|
||||
</a>
|
||||
|
||||
|
@ -1032,7 +1032,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/7b437fbd/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_index.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1174,7 +1174,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/7b437fbd/src/ameba/rule/lint/redundant_with_index.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_index.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -760,7 +760,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/7b437fbd/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">
|
||||
ameba/rule/lint/redundant_with_object.cr
|
||||
</a>
|
||||
|
||||
|
@ -1051,7 +1051,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/7b437fbd/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_object.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1193,7 +1193,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/7b437fbd/src/ameba/rule/lint/redundant_with_object.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/redundant_with_object.cr#L37" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -768,7 +768,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">
|
||||
ameba/rule/lint/shadowed_argument.cr
|
||||
</a>
|
||||
|
||||
|
@ -1072,7 +1072,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_argument.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1214,7 +1214,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_argument.cr#L49" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_argument.cr#L49" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1230,7 +1230,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_argument.cr#L45" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_argument.cr#L45" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -766,7 +766,7 @@ exception is rescued.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">
|
||||
ameba/rule/lint/shadowed_exception.cr
|
||||
</a>
|
||||
|
||||
|
@ -1063,7 +1063,7 @@ exception is rescued.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_exception.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1205,7 +1205,7 @@ exception is rescued.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowed_exception.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowed_exception.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -763,7 +763,7 @@ for block or proc arguments.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L33" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L33" target="_blank">
|
||||
ameba/rule/lint/shadowing_local_outer_var.cr
|
||||
</a>
|
||||
|
||||
|
@ -1067,7 +1067,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1209,7 +1209,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L45" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L45" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1225,7 +1225,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L49" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L49" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1241,7 +1241,7 @@ for block or proc arguments.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shadowing_local_outer_var.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shadowing_local_outer_var.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -778,7 +778,7 @@ the second one.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">
|
||||
ameba/rule/lint/shared_var_in_fiber.cr
|
||||
</a>
|
||||
|
||||
|
@ -1092,7 +1092,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shared_var_in_fiber.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1234,7 +1234,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shared_var_in_fiber.cr#L63" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shared_var_in_fiber.cr#L63" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1250,7 +1250,7 @@ the second one.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/shared_var_in_fiber.cr#L59" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/shared_var_in_fiber.cr#L59" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -776,7 +776,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">
|
||||
ameba/rule/lint/spec_focus.cr
|
||||
</a>
|
||||
|
||||
|
@ -1093,7 +1093,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/spec_focus.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1235,7 +1235,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/spec_focus.cr#L61" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/spec_focus.cr#L61" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1251,7 +1251,7 @@ it <span class="s">"works"</span> <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/spec_focus.cr#L55" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/spec_focus.cr#L55" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -755,7 +755,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/syntax.cr#L21" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/syntax.cr#L21" target="_blank">
|
||||
ameba/rule/lint/syntax.cr
|
||||
</a>
|
||||
|
||||
|
@ -1022,7 +1022,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/syntax.cr#L21" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/syntax.cr#L21" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1164,7 +1164,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/syntax.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/syntax.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -758,7 +758,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">
|
||||
ameba/rule/lint/unneeded_disable_directive.cr
|
||||
</a>
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unneeded_disable_directive.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1189,7 +1189,7 @@ have any effect, the snippet should be written as the following:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unneeded_disable_directive.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unneeded_disable_directive.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -770,7 +770,7 @@ loop <span class="k">do</span>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">
|
||||
ameba/rule/lint/unreachable_code.cr
|
||||
</a>
|
||||
|
||||
|
@ -906,6 +906,11 @@ loop <span class="k">do</span>
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1133,7 +1138,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unreachable_code.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1275,7 +1280,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unreachable_code.cr#L57" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unreachable_code.cr#L57" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1291,7 +1296,7 @@ loop <span class="k">do</span>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unreachable_code.cr#L53" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unreachable_code.cr#L53" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -759,7 +759,7 @@ For example, this is considered invalid:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">
|
||||
ameba/rule/lint/unused_argument.cr
|
||||
</a>
|
||||
|
||||
|
@ -1094,7 +1094,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L27" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1320,7 +1320,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1336,7 +1336,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1352,7 +1352,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L51" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L51" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1368,7 +1368,7 @@ For example, this is considered invalid:</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/unused_argument.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/unused_argument.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -758,7 +758,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">
|
||||
ameba/rule/lint/useless_assign.cr
|
||||
</a>
|
||||
|
||||
|
@ -1052,7 +1052,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_assign.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1194,7 +1194,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_assign.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_assign.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1210,7 +1210,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_assign.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_assign.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -763,7 +763,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">
|
||||
ameba/rule/lint/useless_condition_in_when.cr
|
||||
</a>
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_condition_in_when.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1199,7 +1199,7 @@ where it is guaranteed to always return the same result.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/lint/useless_condition_in_when.cr#L50" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/lint/useless_condition_in_when.cr#L50" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,7 +716,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/metrics/cyclomatic_complexity.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/metrics/cyclomatic_complexity.cr#L1" target="_blank">
|
||||
ameba/rule/metrics/cyclomatic_complexity.cr
|
||||
</a>
|
||||
|
||||
|
|
|
@ -749,7 +749,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/metrics/cyclomatic_complexity.cr#L11" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/metrics/cyclomatic_complexity.cr#L11" target="_blank">
|
||||
ameba/rule/metrics/cyclomatic_complexity.cr
|
||||
</a>
|
||||
|
||||
|
@ -1039,7 +1039,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/metrics/cyclomatic_complexity.cr#L11" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/metrics/cyclomatic_complexity.cr#L11" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1209,7 +1209,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/metrics/cyclomatic_complexity.cr#L19" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/metrics/cyclomatic_complexity.cr#L19" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,63 +716,63 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_after_filter.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_after_filter.cr#L3" target="_blank">
|
||||
ameba/rule/performance/any_after_filter.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_instead_of_empty.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_instead_of_empty.cr#L3" target="_blank">
|
||||
ameba/rule/performance/any_instead_of_empty.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/base.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/base.cr#L3" target="_blank">
|
||||
ameba/rule/performance/base.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/chained_call_with_no_bang.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/chained_call_with_no_bang.cr#L3" target="_blank">
|
||||
ameba/rule/performance/chained_call_with_no_bang.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/compact_after_map.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/compact_after_map.cr#L3" target="_blank">
|
||||
ameba/rule/performance/compact_after_map.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/first_last_after_filter.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/first_last_after_filter.cr#L3" target="_blank">
|
||||
ameba/rule/performance/first_last_after_filter.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/flatten_after_map.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/flatten_after_map.cr#L3" target="_blank">
|
||||
ameba/rule/performance/flatten_after_map.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/map_instead_of_block.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/map_instead_of_block.cr#L3" target="_blank">
|
||||
ameba/rule/performance/map_instead_of_block.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/size_after_filter.cr#L3" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/size_after_filter.cr#L3" target="_blank">
|
||||
ameba/rule/performance/size_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
|
|
@ -757,7 +757,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">
|
||||
ameba/rule/performance/any_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -1127,7 +1127,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1297,7 +1297,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -757,7 +757,7 @@ one value present.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">
|
||||
ameba/rule/performance/any_instead_of_empty.cr
|
||||
</a>
|
||||
|
||||
|
@ -1117,7 +1117,7 @@ one value present.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1259,7 +1259,7 @@ one value present.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/any_instead_of_empty.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/any_instead_of_empty.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -773,7 +773,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/base.cr#L5" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/base.cr#L5" target="_blank">
|
||||
ameba/rule/performance/base.cr
|
||||
</a>
|
||||
|
||||
|
@ -992,7 +992,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/base.cr#L5" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/base.cr#L5" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1034,7 +1034,7 @@ source.valid?</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/base.cr#L6" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/base.cr#L6" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -767,7 +767,7 @@ chars <span class="o">=</span> names
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">
|
||||
ameba/rule/performance/chained_call_with_no_bang.cr
|
||||
</a>
|
||||
|
||||
|
@ -1166,7 +1166,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1336,7 +1336,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/chained_call_with_no_bang.cr#L68" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/chained_call_with_no_bang.cr#L68" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1352,7 +1352,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/chained_call_with_no_bang.cr#L59" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/chained_call_with_no_bang.cr#L59" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -752,7 +752,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">
|
||||
ameba/rule/performance/compact_after_map.cr
|
||||
</a>
|
||||
|
||||
|
@ -1112,7 +1112,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1254,7 +1254,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/compact_after_map.cr#L42" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/compact_after_map.cr#L42" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1270,7 +1270,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/compact_after_map.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/compact_after_map.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -756,7 +756,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">
|
||||
ameba/rule/performance/first_last_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -1134,7 +1134,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1304,7 +1304,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/first_last_after_filter.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/first_last_after_filter.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1320,7 +1320,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/first_last_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/first_last_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -752,7 +752,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">
|
||||
ameba/rule/performance/flatten_after_map.cr
|
||||
</a>
|
||||
|
||||
|
@ -1112,7 +1112,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1254,7 +1254,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/flatten_after_map.cr#L42" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/flatten_after_map.cr#L42" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1270,7 +1270,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/flatten_after_map.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/flatten_after_map.cr#L33" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -753,7 +753,7 @@ that follow <code>map</code>.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">
|
||||
ameba/rule/performance/map_instead_of_block.cr
|
||||
</a>
|
||||
|
||||
|
@ -1115,7 +1115,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1257,7 +1257,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/map_instead_of_block.cr#L43" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/map_instead_of_block.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1273,7 +1273,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/map_instead_of_block.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/map_instead_of_block.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -763,7 +763,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">
|
||||
ameba/rule/performance/size_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -1150,7 +1150,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1320,7 +1320,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/size_after_filter.cr#L53" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/size_after_filter.cr#L53" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1336,7 +1336,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/performance/size_after_filter.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/performance/size_after_filter.cr#L44" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,105 +716,105 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/constant_names.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/constant_names.cr#L1" target="_blank">
|
||||
ameba/rule/style/constant_names.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_filter.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_filter.cr#L1" target="_blank">
|
||||
ameba/rule/style/is_a_filter.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_nil.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_nil.cr#L1" target="_blank">
|
||||
ameba/rule/style/is_a_nil.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/large_numbers.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/large_numbers.cr#L1" target="_blank">
|
||||
ameba/rule/style/large_numbers.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/method_names.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/method_names.cr#L1" target="_blank">
|
||||
ameba/rule/style/method_names.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/negated_conditions_in_unless.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/negated_conditions_in_unless.cr#L1" target="_blank">
|
||||
ameba/rule/style/negated_conditions_in_unless.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/predicate_name.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/predicate_name.cr#L1" target="_blank">
|
||||
ameba/rule/style/predicate_name.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_begin.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_begin.cr#L1" target="_blank">
|
||||
ameba/rule/style/redundant_begin.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_next.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_next.cr#L1" target="_blank">
|
||||
ameba/rule/style/redundant_next.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_return.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_return.cr#L1" target="_blank">
|
||||
ameba/rule/style/redundant_return.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L1" target="_blank">
|
||||
ameba/rule/style/type_names.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/unless_else.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/unless_else.cr#L1" target="_blank">
|
||||
ameba/rule/style/unless_else.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/variable_names.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L1" target="_blank">
|
||||
ameba/rule/style/variable_names.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/verbose_block.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/verbose_block.cr#L1" target="_blank">
|
||||
ameba/rule/style/verbose_block.cr
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/while_true.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/while_true.cr#L1" target="_blank">
|
||||
ameba/rule/style/while_true.cr
|
||||
</a>
|
||||
|
||||
|
|
|
@ -754,7 +754,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/constant_names.cr#L24" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/constant_names.cr#L24" target="_blank">
|
||||
ameba/rule/style/constant_names.cr
|
||||
</a>
|
||||
|
||||
|
@ -1039,7 +1039,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/constant_names.cr#L24" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/constant_names.cr#L24" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1181,7 +1181,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/constant_names.cr#L31" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/constant_names.cr#L31" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -771,7 +771,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># => tr
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">
|
||||
ameba/rule/style/is_a_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># => tr
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_filter.cr#L41" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1268,7 +1268,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># => tr
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_filter.cr#L60" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_filter.cr#L60" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1284,7 +1284,7 @@ matches.one?(<span class="t">Nil</span>) <span class="c"># => tr
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_filter.cr#L51" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_filter.cr#L51" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -752,7 +752,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">
|
||||
ameba/rule/style/is_a_nil.cr
|
||||
</a>
|
||||
|
||||
|
@ -1040,7 +1040,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_nil.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1182,7 +1182,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/is_a_nil.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/is_a_nil.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -759,7 +759,7 @@ large numbers more easily.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
|
||||
ameba/rule/style/large_numbers.cr
|
||||
</a>
|
||||
|
||||
|
@ -1059,7 +1059,7 @@ large numbers more easily.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1229,7 +1229,7 @@ large numbers more easily.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -770,7 +770,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/method_names.cr#L40" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/method_names.cr#L40" target="_blank">
|
||||
ameba/rule/style/method_names.cr
|
||||
</a>
|
||||
|
||||
|
@ -1071,7 +1071,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/method_names.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/method_names.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1213,7 +1213,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/method_names.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/method_names.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -758,7 +758,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">
|
||||
ameba/rule/style/negated_conditions_in_unless.cr
|
||||
</a>
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/negated_conditions_in_unless.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1189,7 +1189,7 @@ that is executed if a negated condition is NOT met.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/negated_conditions_in_unless.cr#L36" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -761,7 +761,7 @@ start with the prefix <code>has_</code> or the prefix <code>is_</code>. Ignores
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/predicate_name.cr#L31" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/predicate_name.cr#L31" target="_blank">
|
||||
ameba/rule/style/predicate_name.cr
|
||||
</a>
|
||||
|
||||
|
@ -1053,7 +1053,7 @@ start with the prefix <code>has_</code> or the prefix <code>is_</code>. Ignores
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/predicate_name.cr#L31" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/predicate_name.cr#L31" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1195,7 +1195,7 @@ start with the prefix <code>has_</code> or the prefix <code>is_</code>. Ignores
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/predicate_name.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/predicate_name.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -783,7 +783,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">
|
||||
ameba/rule/style/redundant_begin.cr
|
||||
</a>
|
||||
|
||||
|
@ -914,6 +914,11 @@
|
|||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
@ -1154,7 +1159,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_begin.cr#L58" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1296,7 +1301,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_begin.cr#L67" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_begin.cr#L67" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -791,6 +791,8 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
|
|||
</h2>
|
||||
<ul class="other-types-list">
|
||||
|
||||
<li class="other-type"><a href="../../../Ameba/AST/Util.html">Ameba::AST::Util</a></li>
|
||||
|
||||
<li class="other-type">YAML::Serializable</li>
|
||||
|
||||
<li class="other-type">YAML::Serializable::Strict</li>
|
||||
|
@ -816,7 +818,7 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">
|
||||
ameba/rule/style/redundant_next.cr
|
||||
</a>
|
||||
|
||||
|
@ -963,6 +965,70 @@ without arguments. Sometimes such statements are used to yild the <code>nil</cod
|
|||
<div class="methods-inherited">
|
||||
|
||||
|
||||
|
||||
<h3>Instance methods inherited from module <code><a href="../../../Ameba/AST/Util.html">Ameba::AST::Util</a></code></h3>
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#abort%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>abort?(node)</span>
|
||||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#flow_command%3F%28node%2Cin_loop%29-instance-method" class="tooltip">
|
||||
<span>flow_command?(node, in_loop)</span>
|
||||
flow_command?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#flow_expression%3F%28node%2Cin_loop%3Dfalse%29-instance-method" class="tooltip">
|
||||
<span>flow_expression?(node, in_loop = <span class="n">false</span>)</span>
|
||||
flow_expression?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#literal%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>literal?(node)</span>
|
||||
literal?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#loop%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>loop?(node)</span>
|
||||
loop?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#node_source%28node%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>node_source(node, code_lines)</span>
|
||||
node_source</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#raise%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>raise?(node)</span>
|
||||
raise?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#source_between%28loc%2Cend_loc%2Ccode_lines%29%3AString%3F-instance-method" class="tooltip">
|
||||
<span>source_between(loc, end_loc, code_lines) : String?</span>
|
||||
source_between</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1188,7 +1254,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/7b437fbd/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_next.cr#L99" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1386,7 +1452,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/7b437fbd/src/ameba/rule/style/redundant_next.cr#L113" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_next.cr#L115" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1402,7 +1468,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/7b437fbd/src/ameba/rule/style/redundant_next.cr#L109" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_next.cr#L111" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -788,6 +788,8 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
|
|||
</h2>
|
||||
<ul class="other-types-list">
|
||||
|
||||
<li class="other-type"><a href="../../../Ameba/AST/Util.html">Ameba::AST::Util</a></li>
|
||||
|
||||
<li class="other-type">YAML::Serializable</li>
|
||||
|
||||
<li class="other-type">YAML::Serializable::Strict</li>
|
||||
|
@ -813,7 +815,7 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">
|
||||
ameba/rule/style/redundant_return.cr
|
||||
</a>
|
||||
|
||||
|
@ -960,6 +962,70 @@ without arguments. Sometimes such returns are used to return the <code>nil</code
|
|||
<div class="methods-inherited">
|
||||
|
||||
|
||||
|
||||
<h3>Instance methods inherited from module <code><a href="../../../Ameba/AST/Util.html">Ameba::AST::Util</a></code></h3>
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#abort%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>abort?(node)</span>
|
||||
abort?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#control_exp_code%28node%3ACrystal%3A%3AControlExpression%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>control_exp_code(node : Crystal::ControlExpression, code_lines)</span>
|
||||
control_exp_code</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#exit%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>exit?(node)</span>
|
||||
exit?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#flow_command%3F%28node%2Cin_loop%29-instance-method" class="tooltip">
|
||||
<span>flow_command?(node, in_loop)</span>
|
||||
flow_command?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#flow_expression%3F%28node%2Cin_loop%3Dfalse%29-instance-method" class="tooltip">
|
||||
<span>flow_expression?(node, in_loop = <span class="n">false</span>)</span>
|
||||
flow_expression?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#literal%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>literal?(node)</span>
|
||||
literal?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#loop%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>loop?(node)</span>
|
||||
loop?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#node_source%28node%2Ccode_lines%29-instance-method" class="tooltip">
|
||||
<span>node_source(node, code_lines)</span>
|
||||
node_source</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#raise%3F%28node%29-instance-method" class="tooltip">
|
||||
<span>raise?(node)</span>
|
||||
raise?</a>,
|
||||
|
||||
|
||||
<a href="../../../Ameba/AST/Util.html#source_between%28loc%2Cend_loc%2Ccode_lines%29%3AString%3F-instance-method" class="tooltip">
|
||||
<span>source_between(loc, end_loc, code_lines) : String?</span>
|
||||
source_between</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1182,7 +1248,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/7b437fbd/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_return.cr#L96" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1380,7 +1446,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/7b437fbd/src/ameba/rule/style/redundant_return.cr#L110" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_return.cr#L112" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1396,7 +1462,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/7b437fbd/src/ameba/rule/style/redundant_return.cr#L106" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/redundant_return.cr#L108" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -784,7 +784,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L54" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L54" target="_blank">
|
||||
ameba/rule/style/type_names.cr
|
||||
</a>
|
||||
|
||||
|
@ -1119,7 +1119,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L54" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L54" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1261,7 +1261,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L69" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L69" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1277,7 +1277,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L73" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L73" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1293,7 +1293,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L77" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L77" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1309,7 +1309,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L81" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L81" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1325,7 +1325,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/type_names.cr#L85" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/type_names.cr#L85" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -771,7 +771,7 @@ an <code>if</code>, so the previous invalid example would become this:</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/unless_else.cr#L45" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/unless_else.cr#L45" target="_blank">
|
||||
ameba/rule/style/unless_else.cr
|
||||
</a>
|
||||
|
||||
|
@ -1073,7 +1073,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/7b437fbd/src/ameba/rule/style/unless_else.cr#L45" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/unless_else.cr#L45" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1215,7 +1215,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/7b437fbd/src/ameba/rule/style/unless_else.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/unless_else.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -755,7 +755,7 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/variable_names.cr#L25" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L25" target="_blank">
|
||||
ameba/rule/style/variable_names.cr
|
||||
</a>
|
||||
|
||||
|
@ -878,6 +878,13 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
|
|||
|
||||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#test%28source%3ASource%29-instance-method" class="signature"><strong>#test</strong>(source : Source)</a>
|
||||
|
||||
<div class="summary"><p>This method is designed to test the source passed in.</p></div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
@ -1051,7 +1058,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/7b437fbd/src/ameba/rule/style/variable_names.cr#L25" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L25" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1193,7 +1200,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/7b437fbd/src/ameba/rule/style/variable_names.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L42" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1209,7 +1216,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/7b437fbd/src/ameba/rule/style/variable_names.cr#L42" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L46" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1225,7 +1232,35 @@ wrong_Name <span class="o">=</span> <span class="n">2</span></code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/variable_names.cr#L46" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L50" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="entry-detail" id="test(source:Source)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>test</strong>(source : <a href="../../../Ameba/Source.html">Source</a>)
|
||||
|
||||
<a class="method-permalink" href="#test%28source%3ASource%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<div class="doc">
|
||||
|
||||
<div class="doc-inherited">
|
||||
Description copied from class <a href="../../../Ameba/Rule/Base.html">Ameba::Rule::Base</a>
|
||||
</div>
|
||||
|
||||
<p>This method is designed to test the source passed in. If source has issues
|
||||
that are tested by this rule, it should add an issue.</p>
|
||||
<p>Be default it uses a node visitor to traverse all the nodes in the source.
|
||||
Must be overriten for other type of rules.</p>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/variable_names.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -760,7 +760,7 @@ argument as a receiver, that can be collapsed into a short form.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">
|
||||
ameba/rule/style/verbose_block.cr
|
||||
</a>
|
||||
|
||||
|
@ -1126,7 +1126,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/7b437fbd/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/verbose_block.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1464,7 +1464,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/7b437fbd/src/ameba/rule/style/verbose_block.cr#L189" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/verbose_block.cr#L189" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -758,7 +758,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/while_true.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/while_true.cr#L28" target="_blank">
|
||||
ameba/rule/style/while_true.cr
|
||||
</a>
|
||||
|
||||
|
@ -1047,7 +1047,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/while_true.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/while_true.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1189,7 +1189,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/rule/style/while_true.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/d843afd9/src/ameba/rule/style/while_true.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue