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 @ dad72341cb
🚀
This commit is contained in:
parent
54e5c4e3ec
commit
bf26f56744
118 changed files with 718 additions and 718 deletions
|
@ -738,17 +738,17 @@
|
|||
These do not affect the value of the number, but can help read
|
||||
large numbers more easily.</p>
|
||||
<p>For example, these are considered invalid:</p>
|
||||
<pre><code class="language-crystal"><span class="n">10000</span>
|
||||
<pre><code class="language-crystal"><span class="n">100000</span>
|
||||
<span class="n">141592654</span>
|
||||
<span class="n">5.12345</span></code></pre>
|
||||
<span class="n">5.123456</span></code></pre>
|
||||
<p>And has to be rewritten as the following:</p>
|
||||
<pre><code class="language-crystal"><span class="n">10_000</span>
|
||||
<pre><code class="language-crystal"><span class="n">100_000</span>
|
||||
<span class="n">141_592_654</span>
|
||||
<span class="n">5.123_45</span></code></pre>
|
||||
<span class="n">5.123_456</span></code></pre>
|
||||
<p>YAML configuration example:</p>
|
||||
<pre><code class="language-crystal">Style/LargeNumbers:
|
||||
Enabled: true
|
||||
IntMinDigits: 5 # i.e. integers higher than 9999</code></pre>
|
||||
IntMinDigits: 6 # i.e. integers higher than 99999</code></pre>
|
||||
|
||||
|
||||
|
||||
|
@ -789,7 +789,7 @@ large numbers more easily.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/ae29754d/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dad72341/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">
|
||||
ameba/rule/style/large_numbers.cr
|
||||
</a>
|
||||
|
||||
|
@ -1073,23 +1073,23 @@ large numbers more easily.</p>
|
|||
These do not affect the value of the number, but can help read
|
||||
large numbers more easily.</p>
|
||||
<p>For example, these are considered invalid:</p>
|
||||
<pre><code class="language-crystal"><span class="n">10000</span>
|
||||
<pre><code class="language-crystal"><span class="n">100000</span>
|
||||
<span class="n">141592654</span>
|
||||
<span class="n">5.12345</span></code></pre>
|
||||
<span class="n">5.123456</span></code></pre>
|
||||
<p>And has to be rewritten as the following:</p>
|
||||
<pre><code class="language-crystal"><span class="n">10_000</span>
|
||||
<pre><code class="language-crystal"><span class="n">100_000</span>
|
||||
<span class="n">141_592_654</span>
|
||||
<span class="n">5.123_45</span></code></pre>
|
||||
<span class="n">5.123_456</span></code></pre>
|
||||
<p>YAML configuration example:</p>
|
||||
<pre><code class="language-crystal">Style/LargeNumbers:
|
||||
Enabled: true
|
||||
IntMinDigits: 5 # i.e. integers higher than 9999</code></pre>
|
||||
IntMinDigits: 6 # i.e. integers higher than 99999</code></pre>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/ae29754d/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dad72341/src/ameba/rule/style/large_numbers.cr#L29" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1259,7 +1259,7 @@ large numbers more easily.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/ae29754d/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dad72341/src/ameba/rule/style/large_numbers.cr#L38" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue