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 @ crystal-ameba/ameba@5cff76071a 🚀
This commit is contained in:
parent
498c79a4e3
commit
9df4a1f5b4
130 changed files with 787 additions and 837 deletions
|
@ -852,7 +852,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">
|
||||
ameba/rule/performance/any_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -873,11 +873,6 @@
|
|||
|
||||
<dl>
|
||||
|
||||
<dt class="entry-const" id="ANY_NAME">
|
||||
<strong>ANY_NAME</strong> = <code><span class="s">"any?"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG">
|
||||
<strong>MSG</strong> = <code><span class="s">"Use `any? {...}` instead of `%s {...}.any?`"</span></code>
|
||||
</dt>
|
||||
|
@ -1250,7 +1245,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_after_filter.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1459,7 +1454,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_after_filter.cr#L37" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -854,7 +854,7 @@ one value present.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">
|
||||
ameba/rule/performance/any_instead_of_empty.cr
|
||||
</a>
|
||||
|
||||
|
@ -875,11 +875,6 @@ one value present.</p>
|
|||
|
||||
<dl>
|
||||
|
||||
<dt class="entry-const" id="ANY_NAME">
|
||||
<strong>ANY_NAME</strong> = <code><span class="s">"any?"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG">
|
||||
<strong>MSG</strong> = <code><span class="s">"Use `!{...}.empty?` instead of `{...}.any?`"</span></code>
|
||||
</dt>
|
||||
|
@ -1336,7 +1331,7 @@ one value present.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_instead_of_empty.cr#L30" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1517,7 +1512,7 @@ one value present.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/any_instead_of_empty.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/any_instead_of_empty.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -870,7 +870,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/base.cr#L5" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/base.cr#L5" target="_blank">
|
||||
ameba/rule/performance/base.cr
|
||||
</a>
|
||||
|
||||
|
@ -1108,7 +1108,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/base.cr#L5" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/base.cr#L5" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1189,7 +1189,7 @@ source.valid?</code></pre>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/base.cr#L6" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/base.cr#L6" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -864,7 +864,7 @@ chars <span class="o">=</span> names
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">
|
||||
ameba/rule/performance/chained_call_with_no_bang.cr
|
||||
</a>
|
||||
|
||||
|
@ -1385,7 +1385,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/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/5cff760/src/ameba/rule/performance/chained_call_with_no_bang.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1594,7 +1594,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/chained_call_with_no_bang.cr#L65" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/chained_call_with_no_bang.cr#L65" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1610,7 +1610,7 @@ chars <span class="o">=</span> names
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/chained_call_with_no_bang.cr#L61" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/chained_call_with_no_bang.cr#L61" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -847,7 +847,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">
|
||||
ameba/rule/performance/compact_after_map.cr
|
||||
</a>
|
||||
|
||||
|
@ -868,16 +868,6 @@
|
|||
|
||||
<dl>
|
||||
|
||||
<dt class="entry-const" id="COMPACT_NAME">
|
||||
<strong>COMPACT_NAME</strong> = <code><span class="s">"compact"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MAP_NAME">
|
||||
<strong>MAP_NAME</strong> = <code><span class="s">"map"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG">
|
||||
<strong>MSG</strong> = <code><span class="s">"Use `compact_map {...}` instead of `map {...}.compact`"</span></code>
|
||||
</dt>
|
||||
|
@ -1235,7 +1225,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/compact_after_map.cr#L24" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1416,7 +1406,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/compact_after_map.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/compact_after_map.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1432,7 +1422,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/compact_after_map.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/compact_after_map.cr#L31" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -857,7 +857,7 @@ that can be avoided by using <code>each_<member></code> instead of <code>&
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/excessive_allocations.cr#L32" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/excessive_allocations.cr#L32" target="_blank">
|
||||
ameba/rule/performance/excessive_allocations.cr
|
||||
</a>
|
||||
|
||||
|
@ -1355,7 +1355,7 @@ that can be avoided by using <code>each_<member></code> instead of <code>&
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/excessive_allocations.cr#L32" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/excessive_allocations.cr#L32" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1564,7 +1564,7 @@ that can be avoided by using <code>each_<member></code> instead of <code>&
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/excessive_allocations.cr#L54" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/excessive_allocations.cr#L54" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1580,7 +1580,7 @@ that can be avoided by using <code>each_<member></code> instead of <code>&
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/excessive_allocations.cr#L50" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/excessive_allocations.cr#L50" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -851,7 +851,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">
|
||||
ameba/rule/performance/first_last_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -1257,7 +1257,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/first_last_after_filter.cr#L28" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1466,7 +1466,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/first_last_after_filter.cr#L42" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/first_last_after_filter.cr#L42" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1482,7 +1482,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/first_last_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/first_last_after_filter.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -847,7 +847,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">
|
||||
ameba/rule/performance/flatten_after_map.cr
|
||||
</a>
|
||||
|
||||
|
@ -868,16 +868,6 @@
|
|||
|
||||
<dl>
|
||||
|
||||
<dt class="entry-const" id="FLATTEN_NAME">
|
||||
<strong>FLATTEN_NAME</strong> = <code><span class="s">"flatten"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MAP_NAME">
|
||||
<strong>MAP_NAME</strong> = <code><span class="s">"map"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="MSG">
|
||||
<strong>MSG</strong> = <code><span class="s">"Use `flat_map {...}` instead of `map {...}.flatten`"</span></code>
|
||||
</dt>
|
||||
|
@ -1235,7 +1225,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/flatten_after_map.cr#L24" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1416,7 +1406,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/flatten_after_map.cr#L37" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/flatten_after_map.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1432,7 +1422,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/flatten_after_map.cr#L33" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/flatten_after_map.cr#L31" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -848,7 +848,7 @@ that follow <code>map</code>.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">
|
||||
ameba/rule/performance/map_instead_of_block.cr
|
||||
</a>
|
||||
|
||||
|
@ -1238,7 +1238,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/map_instead_of_block.cr#L25" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1419,7 +1419,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/map_instead_of_block.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/map_instead_of_block.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1435,7 +1435,7 @@ that follow <code>map</code>.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/map_instead_of_block.cr#L34" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/map_instead_of_block.cr#L34" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -858,7 +858,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">
|
||||
ameba/rule/performance/size_after_filter.cr
|
||||
</a>
|
||||
|
||||
|
@ -884,11 +884,6 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt class="entry-const" id="SIZE_NAME">
|
||||
<strong>SIZE_NAME</strong> = <code><span class="s">"size"</span></code>
|
||||
</dt>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
@ -1273,7 +1268,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/size_after_filter.cr#L35" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1482,7 +1477,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/size_after_filter.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/size_after_filter.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1498,7 +1493,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/29e29b8/src/ameba/rule/performance/size_after_filter.cr#L44" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/5cff760/src/ameba/rule/performance/size_after_filter.cr#L43" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue