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 @ dafae6ca77
🚀
This commit is contained in:
parent
1345f16c51
commit
e91432a963
110 changed files with 639 additions and 639 deletions
|
@ -704,7 +704,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L2" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L2" target="_blank">
|
||||
ameba/spec/annotated_source.cr
|
||||
</a>
|
||||
|
||||
|
@ -886,7 +886,7 @@ text via <code><a href="../../Ameba/Spec/AnnotatedSource.html#to_s%28io%29-insta
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L39" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L39" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -909,7 +909,7 @@ text via <code><a href="../../Ameba/Spec/AnnotatedSource.html#to_s%28io%29-insta
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L47" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L47" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -943,7 +943,7 @@ code line number that each annotation corresponds to.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L15" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L15" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -980,7 +980,7 @@ code line number that each annotation corresponds to.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L51" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L51" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1002,7 +1002,7 @@ The prefix is empty if the annotation is at the end of a code line.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L11" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L11" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1018,7 +1018,7 @@ The prefix is empty if the annotation is at the end of a code line.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L7" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L7" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1055,7 +1055,7 @@ source1.to_s <span class="o">==</span> source2.to_s <span class="c"># => true
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/annotated_source.cr#L102" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/annotated_source.cr#L102" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -691,7 +691,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L2" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L2" target="_blank">
|
||||
ameba/spec/be_valid.cr
|
||||
</a>
|
||||
|
||||
|
@ -756,7 +756,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L3" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L3" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -693,7 +693,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L8" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L8" target="_blank">
|
||||
ameba/spec/be_valid.cr
|
||||
</a>
|
||||
|
||||
|
@ -811,7 +811,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L8" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L8" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -841,7 +841,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L13" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L13" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -857,7 +857,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L9" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L9" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -873,7 +873,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/be_valid.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/be_valid.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -693,7 +693,7 @@ one code snippet.</p>
|
|||
# ^^^^^ error: Avoid chaining a method call on a do...end block.
|
||||
end
|
||||
)</span></code></pre>
|
||||
<p>Equivalent assertion without <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_issue</a></code>:</p>
|
||||
<p>Equivalent assertion without <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%2C%2A%2Areplacements%29-instance-method">#expect_issue</a></code>:</p>
|
||||
<pre><code class="language-crystal">source <span class="o">=</span> <span class="t">Source</span>.<span class="k">new</span> <span class="s">%(
|
||||
def foo
|
||||
a do
|
||||
|
@ -713,7 +713,7 @@ issue.message.should eq(
|
|||
<p>If you do not want to specify an issue then use the
|
||||
companion method <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_no_issues%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Ccode%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_no_issues</a></code>. This method is a much
|
||||
simpler assertion since it just inspects the code and checks
|
||||
that there were no issues. The <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_issue</a></code> method has
|
||||
that there were no issues. The <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%2C%2A%2Areplacements%29-instance-method">#expect_issue</a></code> method has
|
||||
to do more work by parsing out lines that contain carets.</p>
|
||||
|
||||
|
||||
|
@ -753,7 +753,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/expect_issue.cr#L47" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/expect_issue.cr#L47" target="_blank">
|
||||
ameba/spec/expect_issue.cr
|
||||
</a>
|
||||
|
||||
|
@ -779,7 +779,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
<ul class="list-summary">
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method" class="signature"><strong>#expect_issue</strong>(rules : Rule::Base | Enumerable(Rule::Base), annotated_code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__)</a>
|
||||
<a href="#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%2C%2A%2Areplacements%29-instance-method" class="signature"><strong>#expect_issue</strong>(rules : Rule::Base | Enumerable(Rule::Base), annotated_code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__, **replacements)</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -831,18 +831,18 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
Instance Method Detail
|
||||
</h2>
|
||||
|
||||
<div class="entry-detail" id="expect_issue(rules:Rule::Base|Enumerable(Rule::Base),annotated_code:String,path="",normalize=true,*,file=__FILE__,line=__LINE__)-instance-method">
|
||||
<div class="entry-detail" id="expect_issue(rules:Rule::Base|Enumerable(Rule::Base),annotated_code:String,path="",normalize=true,*,file=__FILE__,line=__LINE__,**replacements)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>expect_issue</strong>(rules : <a href="../../Ameba/Rule/Base.html">Rule::Base</a> | Enumerable(<a href="../../Ameba/Rule/Base.html">Rule::Base</a>), annotated_code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__)
|
||||
def <strong>expect_issue</strong>(rules : <a href="../../Ameba/Rule/Base.html">Rule::Base</a> | Enumerable(<a href="../../Ameba/Rule/Base.html">Rule::Base</a>), annotated_code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__, **replacements)
|
||||
|
||||
<a class="method-permalink" href="#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#</a>
|
||||
<a class="method-permalink" href="#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%2Cnormalize%3Dtrue%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%2C%2A%2Areplacements%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/expect_issue.cr#L50" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/expect_issue.cr#L50" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -858,7 +858,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/expect_issue.cr#L80" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/expect_issue.cr#L82" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -707,7 +707,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/util.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/util.cr#L1" target="_blank">
|
||||
ameba/spec/util.cr
|
||||
</a>
|
||||
|
||||
|
@ -772,7 +772,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/3d432fde/src/ameba/spec/util.cr#L2" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/dafae6ca/src/ameba/spec/util.cr#L2" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue