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 @ 7b437fbd2f
🚀
This commit is contained in:
parent
b622e7a011
commit
d26105f90e
113 changed files with 765 additions and 715 deletions
|
@ -729,7 +729,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/annotated_source.cr#L2" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L2" target="_blank">
|
||||
ameba/spec/annotated_source.cr
|
||||
</a>
|
||||
|
||||
|
@ -911,7 +911,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/7cb0c157/src/ameba/spec/annotated_source.cr#L40" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L40" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -934,7 +934,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/7cb0c157/src/ameba/spec/annotated_source.cr#L48" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L48" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -968,7 +968,7 @@ code line number that each annotation corresponds to.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/annotated_source.cr#L15" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L15" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1005,7 +1005,7 @@ code line number that each annotation corresponds to.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/annotated_source.cr#L52" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L52" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1027,7 +1027,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/7cb0c157/src/ameba/spec/annotated_source.cr#L11" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L11" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1043,7 +1043,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/7cb0c157/src/ameba/spec/annotated_source.cr#L7" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L7" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1080,7 +1080,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/7cb0c157/src/ameba/spec/annotated_source.cr#L103" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/annotated_source.cr#L103" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -716,7 +716,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L2" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L2" target="_blank">
|
||||
ameba/spec/be_valid.cr
|
||||
</a>
|
||||
|
||||
|
@ -781,7 +781,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L3" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L3" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -718,7 +718,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L8" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L8" target="_blank">
|
||||
ameba/spec/be_valid.cr
|
||||
</a>
|
||||
|
||||
|
@ -836,7 +836,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L8" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L8" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -866,7 +866,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L13" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L13" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -882,7 +882,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L9" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L9" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -898,7 +898,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/be_valid.cr#L22" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/be_valid.cr#L22" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -702,7 +702,8 @@
|
|||
Overview
|
||||
</h2>
|
||||
|
||||
<p>This mixin makes it easier to specify strict issue expectations
|
||||
<p>Mixin for <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%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%2C%2A%2Areplacements%29-instance-method">#expect_issue</a></code> and <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%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_no_issues</a></code></p>
|
||||
<p>This mixin makes it easier to specify strict issue expectations
|
||||
in a declarative and visual fashion. Just type out the code that
|
||||
should generate an issue, annotate code by writing '^'s
|
||||
underneath each character that should be highlighted, and follow
|
||||
|
@ -710,36 +711,75 @@ the carets with a string (separated by a space) that is the
|
|||
message of the issue. You can include multiple issues in
|
||||
one code snippet.</p>
|
||||
<p>Usage:</p>
|
||||
<pre><code class="language-crystal">expect_issue subject, <span class="s">%(
|
||||
def foo
|
||||
a do
|
||||
b
|
||||
end.c
|
||||
# ^^^^^ 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__%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
|
||||
b
|
||||
end.c
|
||||
end
|
||||
)</span>, <span class="s">"source.cr"</span>
|
||||
<pre><code class="language-crystal">expect_issue subject, <span class="s"><<-CRYSTAL</span>
|
||||
<span class="s"> a do
|
||||
b
|
||||
end.c
|
||||
# ^^^ error: Avoid chaining a method call on a do...end block.
|
||||
CRYSTAL</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%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"><<-CRYSTAL</span>, <span class="s">"source.cr"</span>
|
||||
<span class="s"> a do
|
||||
b
|
||||
end.c
|
||||
CRYSTAL</span>
|
||||
subject.catch(source).should_not be_valid
|
||||
source.issues.size.should be(<span class="n">1</span>)
|
||||
|
||||
issue <span class="o">=</span> source.issues.first
|
||||
issue.location.to_s.should eq <span class="s">"source.cr:4:3"</span>
|
||||
issue.end_location.to_s.should eq <span class="s">"source.cr:4:7"</span>
|
||||
issue.location.to_s.should eq <span class="s">"source.cr:3:1"</span>
|
||||
issue.end_location.to_s.should eq <span class="s">"source.cr:3:5"</span>
|
||||
issue.message.should eq(
|
||||
<span class="s">"Avoid chaining a method call on a do...end block."</span>
|
||||
)</code></pre>
|
||||
<p>Autocorrection can be tested using <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_correction%28source%2Ccorrection%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_correction</a></code> after
|
||||
<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%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> expect_issue subject, <span class="s"><<-CRYSTAL</span>
|
||||
<span class="s"> x % 2 == 0
|
||||
# ^^^^^^^^ error: Replace with `Int#even?`.
|
||||
CRYSTAL</span>
|
||||
|
||||
expect_correction source, <span class="s"><<-CRYSTAL</span>
|
||||
<span class="s"> x.even?
|
||||
CRYSTAL</span></code></pre>
|
||||
<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
|
||||
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%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__%2C%2A%2Areplacements%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%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>
|
||||
<p>If the code produces an issue that could not be auto-corrected, you can
|
||||
use <code><a href="../../Ameba/Spec/ExpectIssue.html#expect_no_corrections%28source%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#expect_no_corrections</a></code> after <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%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> expect_issue subject, <span class="s"><<-CRYSTAL</span>
|
||||
<span class="s"> a do
|
||||
b
|
||||
end.c
|
||||
# ^^^ error: Avoid chaining a method call on a do...end block.
|
||||
CRYSTAL</span>
|
||||
|
||||
expect_no_corrections source</code></pre>
|
||||
<p>If your code has variables of different lengths, you can use <code>%{foo}</code>,
|
||||
<code>^{foo}</code>, and <code>_{foo}</code> to format your template; you can also abbreviate
|
||||
issue messages with <code>[...]</code>:</p>
|
||||
<pre><code class="language-crystal"><span class="s">%w[raise fail]</span>.each <span class="k">do</span> <span class="o">|</span>keyword<span class="o">|</span>
|
||||
expect_issue subject, <span class="s"><<-CRYSTAL</span>, keyword: keyword
|
||||
<span class="s"> %{keyword} Exception.new(msg)
|
||||
# ^{keyword}^^^^^^^^^^^^^^^^^ error: Redundant `Exception.new` [...]
|
||||
CRYSTAL</span>
|
||||
|
||||
<span class="s">%w[has_one has_many]</span>.each <span class="k">do</span> <span class="o">|</span><span class="k">type</span><span class="o">|</span>
|
||||
expect_issue subject, <span class="s"><<-CRYSTAL</span>, <span class="k">type</span>: <span class="k">type</span>
|
||||
<span class="s"> class Book
|
||||
%{type} :chapter, foreign_key: "book_id"
|
||||
_{type} # ^^^^^^^^^^^^^^^^^^^^^^ error: Specifying the default [...]
|
||||
end
|
||||
CRYSTAL</span>
|
||||
<span class="k">end</span></code></pre>
|
||||
<p>If you need to specify an issue on a blank line, use the empty <code>^{}</code> marker:</p>
|
||||
<pre><code class="language-crystal">expect_issue subject, <span class="s"><<-CRYSTAL</span>
|
||||
<span class="s">
|
||||
# ^{} error: Missing frozen string literal comment.
|
||||
puts 1
|
||||
CRYSTAL</span></code></pre>
|
||||
|
||||
|
||||
|
||||
|
@ -778,7 +818,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/expect_issue.cr#L47" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/expect_issue.cr#L96" target="_blank">
|
||||
ameba/spec/expect_issue.cr
|
||||
</a>
|
||||
|
||||
|
@ -809,7 +849,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
</li>
|
||||
|
||||
<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__%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>
|
||||
<a href="#expect_issue%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Cannotated_code%3AString%2Cpath%3D%22%22%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>, *, file = __FILE__, line = __LINE__, **replacements)</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -819,7 +859,7 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
</li>
|
||||
|
||||
<li class="entry-summary">
|
||||
<a href="#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" class="signature"><strong>#expect_no_issues</strong>(rules : Rule::Base | Enumerable(Rule::Base), code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__)</a>
|
||||
<a href="#expect_no_issues%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Ccode%3AString%2Cpath%3D%22%22%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method" class="signature"><strong>#expect_no_issues</strong>(rules : Rule::Base | Enumerable(Rule::Base), code : String, path = <span class="s">""</span>, *, file = __FILE__, line = __LINE__)</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -877,23 +917,23 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/expect_issue.cr#L84" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/expect_issue.cr#L131" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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="entry-detail" id="expect_issue(rules:Rule::Base|Enumerable(Rule::Base),annotated_code:String,path="",*,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__, **replacements)
|
||||
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>, *, 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__%2C%2A%2Areplacements%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%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/7cb0c157/src/ameba/spec/expect_issue.cr#L50" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/expect_issue.cr#L99" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -909,23 +949,23 @@ to do more work by parsing out lines that contain carets.</p>
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/expect_issue.cr#L99" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/expect_issue.cr#L146" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="entry-detail" id="expect_no_issues(rules:Rule::Base|Enumerable(Rule::Base),code:String,path="",normalize=true,*,file=__FILE__,line=__LINE__)-instance-method">
|
||||
<div class="entry-detail" id="expect_no_issues(rules:Rule::Base|Enumerable(Rule::Base),code:String,path="",*,file=__FILE__,line=__LINE__)-instance-method">
|
||||
<div class="signature">
|
||||
|
||||
def <strong>expect_no_issues</strong>(rules : <a href="../../Ameba/Rule/Base.html">Rule::Base</a> | Enumerable(<a href="../../Ameba/Rule/Base.html">Rule::Base</a>), code : String, path = <span class="s">""</span>, normalize = <span class="n">true</span>, *, file = __FILE__, line = __LINE__)
|
||||
def <strong>expect_no_issues</strong>(rules : <a href="../../Ameba/Rule/Base.html">Rule::Base</a> | Enumerable(<a href="../../Ameba/Rule/Base.html">Rule::Base</a>), code : String, path = <span class="s">""</span>, *, file = __FILE__, line = __LINE__)
|
||||
|
||||
<a class="method-permalink" href="#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">#</a>
|
||||
<a class="method-permalink" href="#expect_no_issues%28rules%3ARule%3A%3ABase%7CEnumerable%28Rule%3A%3ABase%29%2Ccode%3AString%2Cpath%3D%22%22%2C%2A%2Cfile%3D__FILE__%2Cline%3D__LINE__%29-instance-method">#</a>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/expect_issue.cr#L109" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/expect_issue.cr#L156" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -732,7 +732,7 @@
|
|||
</h2>
|
||||
|
||||
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/util.cr#L1" target="_blank">
|
||||
<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/util.cr#L1" target="_blank">
|
||||
ameba/spec/util.cr
|
||||
</a>
|
||||
|
||||
|
@ -797,7 +797,7 @@
|
|||
<br/>
|
||||
<div>
|
||||
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7cb0c157/src/ameba/spec/util.cr#L2" target="_blank">View source</a>]
|
||||
[<a href="https://github.com/crystal-ameba/ameba/blob/7b437fbd/src/ameba/spec/util.cr#L2" target="_blank">View source</a>]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue