From 3fc0ef00ab433969a8339cd3ba835b84ebf3f019 Mon Sep 17 00:00:00 2001
From: Sija
-
+
ameba/glob_utils.cr
-
+
ameba/inline_comments.cr
-
+
ameba/issue.cr
-
+
ameba/reportable.cr
-
+
ameba/runner.cr
-
+
ameba/severity.cr
-
+
ameba/source.cr
-
+
ameba/spec/support.cr
-
+
ameba/tokenizer.cr
@@ -962,7 +962,7 @@ Can be configured via config
parameter.
@node
.
false
, meaning all child nodes will not be traversed.
return
:
return
:
return
:
@node
.
@node
.
@node
.
@node
.
@node
.
@node
.
@node
.
Ameba::
-
+
ameba/formatter/base_formatter.cr
@@ -939,7 +939,7 @@ callbacks in Ameba::
- [View source]
+ [View source]
@@ -969,7 +969,7 @@ callbacks in Ameba::
- [View source]
+ [View source]
@@ -991,7 +991,7 @@ A list of inspected sources is passed as an argument.
- [View source]
+ [View source]
@@ -1012,7 +1012,7 @@ A list of inspected sources is passed as an argument.
- [View source]
+ [View source]
@@ -1034,7 +1034,7 @@ A corresponding source is passed as an argument.
- [View source]
+ [View source]
@@ -1056,7 +1056,7 @@ A corresponding source is passed as an argument.
- [View source]
+ [View source]
@@ -1078,7 +1078,7 @@ A list of sources to inspect is passed as an argument.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/DisabledFormatter.html b/Ameba/Formatter/DisabledFormatter.html
index a4fcd100..b395869a 100644
--- a/Ameba/Formatter/DisabledFormatter.html
+++ b/Ameba/Formatter/DisabledFormatter.html
@@ -784,7 +784,7 @@
-
+
ameba/formatter/disabled_formatter.cr
@@ -934,7 +934,7 @@ A list of inspected sources is passed as an argument.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/DotFormatter.html b/Ameba/Formatter/DotFormatter.html
index 3a424bd3..d3ee051a 100644
--- a/Ameba/Formatter/DotFormatter.html
+++ b/Ameba/Formatter/DotFormatter.html
@@ -813,7 +813,7 @@ It is similar to Crystal's dot formatter for specs.
-
+
ameba/formatter/dot_formatter.cr
@@ -1006,7 +1006,7 @@ It is similar to Crystal's dot formatter for specs.
- [View source]
+ [View source]
@@ -1027,7 +1027,7 @@ It is similar to Crystal's dot formatter for specs.
- [View source]
+ [View source]
@@ -1048,7 +1048,7 @@ It is similar to Crystal's dot formatter for specs.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/ExplainFormatter.html b/Ameba/Formatter/ExplainFormatter.html
index 0da44cf6..2b6bf589 100644
--- a/Ameba/Formatter/ExplainFormatter.html
+++ b/Ameba/Formatter/ExplainFormatter.html
@@ -799,7 +799,7 @@ a specific location.
-
+
ameba/formatter/explain_formatter.cr
@@ -976,7 +976,7 @@ Second argument is location which indicates the location to explain.
- [View source]
+ [View source]
@@ -1011,7 +1011,7 @@ Second argument is location which indicates the location to explain.
- [View source]
+ [View source]
@@ -1027,7 +1027,7 @@ Second argument is location which indicates the location to explain.
- [View source]
+ [View source]
@@ -1043,7 +1043,7 @@ Second argument is location which indicates the location to explain.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/FlycheckFormatter.html b/Ameba/Formatter/FlycheckFormatter.html
index 51cd17a0..8146ab6a 100644
--- a/Ameba/Formatter/FlycheckFormatter.html
+++ b/Ameba/Formatter/FlycheckFormatter.html
@@ -773,7 +773,7 @@
-
+
ameba/formatter/flycheck_formatter.cr
@@ -923,7 +923,7 @@ A corresponding source is passed as an argument.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/JSONFormatter.html b/Ameba/Formatter/JSONFormatter.html
index 3f0bf077..2d4dccab 100644
--- a/Ameba/Formatter/JSONFormatter.html
+++ b/Ameba/Formatter/JSONFormatter.html
@@ -840,7 +840,7 @@
-
+
ameba/formatter/json_formatter.cr
@@ -1007,7 +1007,7 @@
- [View source]
+ [View source]
@@ -1047,7 +1047,7 @@ A list of inspected sources is passed as an argument.
- [View source]
+ [View source]
@@ -1073,7 +1073,7 @@ A corresponding source is passed as an argument.
- [View source]
+ [View source]
@@ -1099,7 +1099,7 @@ A list of sources to inspect is passed as an argument.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/TODOFormatter.html b/Ameba/Formatter/TODOFormatter.html
index 5af09803..4c1a2e18 100644
--- a/Ameba/Formatter/TODOFormatter.html
+++ b/Ameba/Formatter/TODOFormatter.html
@@ -786,7 +786,7 @@ or excludes failed sources from these rules.
-
+
ameba/formatter/todo_formatter.cr
@@ -1002,7 +1002,7 @@ or excludes failed sources from these rules.
- [View source]
+ [View source]
@@ -1041,7 +1041,7 @@ or excludes failed sources from these rules.
- [View source]
+ [View source]
diff --git a/Ameba/Formatter/Util.html b/Ameba/Formatter/Util.html
index 9620ac0b..df320bc3 100644
--- a/Ameba/Formatter/Util.html
+++ b/Ameba/Formatter/Util.html
@@ -787,7 +787,7 @@
-
+
ameba/formatter/util.cr
@@ -872,7 +872,7 @@
- [View source]
+ [View source]
@@ -888,7 +888,7 @@
- [View source]
+ [View source]
@@ -904,7 +904,7 @@
- [View source]
+ [View source]
@@ -920,7 +920,7 @@
- [View source]
+ [View source]
@@ -936,7 +936,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/GlobUtils.html b/Ameba/GlobUtils.html
index dde2fd82..237a5072 100644
--- a/Ameba/GlobUtils.html
+++ b/Ameba/GlobUtils.html
@@ -796,7 +796,7 @@
-
+
ameba/glob_utils.cr
@@ -876,7 +876,7 @@
- [View source]
+ [View source]
@@ -899,7 +899,7 @@ Globs can have wildcards or be rejected:
- [View source]
+ [View source]
diff --git a/Ameba/InlineComments.html b/Ameba/InlineComments.html
index 31ce47aa..d2a2427e 100644
--- a/Ameba/InlineComments.html
+++ b/Ameba/InlineComments.html
@@ -796,7 +796,7 @@
-
+
ameba/inline_comments.cr
@@ -901,7 +901,7 @@
- [View source]
+ [View source]
@@ -941,7 +941,7 @@ false otherwise.
- [View source]
+ [View source]
@@ -970,7 +970,7 @@ parse_inline_directive(line) # => nil
- [View source]
+ [View source]
diff --git a/Ameba/InlineComments/Action.html b/Ameba/InlineComments/Action.html
index 941b81d5..6aa9115a 100644
--- a/Ameba/InlineComments/Action.html
+++ b/Ameba/InlineComments/Action.html
@@ -782,7 +782,7 @@
-
+
ameba/inline_comments.cr
@@ -916,7 +916,7 @@
- [View source]
+ [View source]
@@ -932,7 +932,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Issue.html b/Ameba/Issue.html
index 9fd112ea..bf0facc4 100644
--- a/Ameba/Issue.html
+++ b/Ameba/Issue.html
@@ -784,7 +784,7 @@
-
+
ameba/issue.cr
@@ -964,7 +964,7 @@
- [View source]
+ [View source]
@@ -999,7 +999,7 @@
- [View source]
+ [View source]
@@ -1015,7 +1015,7 @@
- [View source]
+ [View source]
@@ -1031,7 +1031,7 @@
- [View source]
+ [View source]
@@ -1047,7 +1047,7 @@
- [View source]
+ [View source]
@@ -1063,7 +1063,7 @@
- [View source]
+ [View source]
@@ -1079,7 +1079,7 @@
- [View source]
+ [View source]
@@ -1095,7 +1095,7 @@
- [View source]
+ [View source]
@@ -1116,7 +1116,7 @@
- [View source]
+ [View source]
@@ -1137,7 +1137,7 @@
- [View source]
+ [View source]
@@ -1158,7 +1158,7 @@
- [View source]
+ [View source]
@@ -1179,7 +1179,7 @@
- [View source]
+ [View source]
@@ -1200,7 +1200,7 @@
- [View source]
+ [View source]
@@ -1216,7 +1216,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Issue/Status.html b/Ameba/Issue/Status.html
index 0a9d125a..a001f4a0 100644
--- a/Ameba/Issue/Status.html
+++ b/Ameba/Issue/Status.html
@@ -771,7 +771,7 @@
-
+
ameba/issue.cr
@@ -905,7 +905,7 @@
- [View source]
+ [View source]
@@ -921,7 +921,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Reportable.html b/Ameba/Reportable.html
index 4a5bc4a6..d4c6843d 100644
--- a/Ameba/Reportable.html
+++ b/Ameba/Reportable.html
@@ -796,7 +796,7 @@
-
+
ameba/reportable.cr
@@ -945,7 +945,7 @@
- [View source]
+ [View source]
@@ -966,7 +966,7 @@
- [View source]
+ [View source]
@@ -987,7 +987,7 @@
- [View source]
+ [View source]
@@ -1008,7 +1008,7 @@
- [View source]
+ [View source]
@@ -1029,7 +1029,7 @@
- [View source]
+ [View source]
@@ -1050,7 +1050,7 @@
- [View source]
+ [View source]
@@ -1071,7 +1071,7 @@
- [View source]
+ [View source]
@@ -1092,7 +1092,7 @@
- [View source]
+ [View source]
@@ -1113,7 +1113,7 @@
- [View source]
+ [View source]
@@ -1134,7 +1134,7 @@
- [View source]
+ [View source]
@@ -1155,7 +1155,7 @@
- [View source]
+ [View source]
@@ -1176,7 +1176,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Rule.html b/Ameba/Rule.html
index f431c5ef..4c66c296 100644
--- a/Ameba/Rule.html
+++ b/Ameba/Rule.html
@@ -771,7 +771,7 @@
-
+
ameba/rule/base.cr
@@ -866,7 +866,7 @@ behave differently than usual rules.
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Base.html b/Ameba/Rule/Base.html
index 5538899e..af4bffa6 100644
--- a/Ameba/Rule/Base.html
+++ b/Ameba/Rule/Base.html
@@ -933,7 +933,7 @@ that are tested by this rule, it should add an issue.
-
+
ameba/rule/base.cr
@@ -1170,7 +1170,7 @@ that are tested by this rule, it should add an issue.
- [View source]
+ [View source]
@@ -1194,7 +1194,7 @@ source.valid?
- [View source]
+ [View source]
@@ -1218,7 +1218,7 @@ the one of the given source.
- [View source]
+ [View source]
@@ -1244,7 +1244,7 @@ the one of the given source.
- [View source]
+ [View source]
@@ -1274,7 +1274,7 @@ though usually the macro def_hash
can be used to generate this meth
- [View source]
+ [View source]
@@ -1301,7 +1301,7 @@ though usually the macro def_hash
can be used to generate this meth
- [View source]
+ [View source]
@@ -1324,7 +1324,7 @@ usual rules.
- [View source]
+ [View source]
@@ -1340,7 +1340,7 @@ usual rules.
- [View source]
+ [View source]
@@ -1364,7 +1364,7 @@ that are tested by this rule, it should add an issue.
- [View source]
+ [View source]
@@ -1392,7 +1392,7 @@ that are tested by this rule, it should add an issue.
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Layout.html b/Ameba/Rule/Layout.html
index 15f3a420..0f26e588 100644
--- a/Ameba/Rule/Layout.html
+++ b/Ameba/Rule/Layout.html
@@ -771,21 +771,21 @@
-
+
ameba/rule/layout/line_length.cr
-
+
ameba/rule/layout/trailing_blank_lines.cr
-
+
ameba/rule/layout/trailing_whitespace.cr
diff --git a/Ameba/Rule/Layout/LineLength.html b/Ameba/Rule/Layout/LineLength.html
index 80fa66a1..19e4d60f 100644
--- a/Ameba/Rule/Layout/LineLength.html
+++ b/Ameba/Rule/Layout/LineLength.html
@@ -804,7 +804,7 @@
-
+
ameba/rule/layout/line_length.cr
@@ -1113,7 +1113,7 @@
- [View source]
+ [View source]
@@ -1322,7 +1322,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Layout/TrailingBlankLines.html b/Ameba/Rule/Layout/TrailingBlankLines.html
index 7ae5788f..a844b92d 100644
--- a/Ameba/Rule/Layout/TrailingBlankLines.html
+++ b/Ameba/Rule/Layout/TrailingBlankLines.html
@@ -803,7 +803,7 @@
-
+
ameba/rule/layout/trailing_blank_lines.cr
@@ -1106,7 +1106,7 @@
- [View source]
+ [View source]
@@ -1287,7 +1287,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Layout/TrailingWhitespace.html b/Ameba/Rule/Layout/TrailingWhitespace.html
index 404b6f09..2aa7e29f 100644
--- a/Ameba/Rule/Layout/TrailingWhitespace.html
+++ b/Ameba/Rule/Layout/TrailingWhitespace.html
@@ -803,7 +803,7 @@
-
+
ameba/rule/layout/trailing_whitespace.cr
@@ -1101,7 +1101,7 @@
- [View source]
+ [View source]
@@ -1282,7 +1282,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Lint.html b/Ameba/Rule/Lint.html
index aff6448d..97449ece 100644
--- a/Ameba/Rule/Lint.html
+++ b/Ameba/Rule/Lint.html
@@ -771,224 +771,224 @@
-
+
ameba/rule/lint/ambiguous_assignment.cr
-
+
ameba/rule/lint/bad_directive.cr
-
+
ameba/rule/lint/comparison_to_boolean.cr
-
+
ameba/rule/lint/debug_calls.cr
-
+
ameba/rule/lint/debugger_statement.cr
-
+
ameba/rule/lint/duplicated_require.cr
-
+
ameba/rule/lint/empty_ensure.cr
-
+
ameba/rule/lint/empty_expression.cr
-
+
ameba/rule/lint/empty_loop.cr
-
+
ameba/rule/lint/hash_duplicated_key.cr
-
+
ameba/rule/lint/literal_assignments_in_expressions.cr
-
+
ameba/rule/lint/literal_in_condition.cr
-
+
ameba/rule/lint/literal_in_interpolation.cr
-
+
ameba/rule/lint/literals_comparison.cr
-
+
ameba/rule/lint/not_nil.cr
-
+
ameba/rule/lint/not_nil_after_no_bang.cr
-
+
ameba/rule/lint/percent_array.cr
-
+
ameba/rule/lint/rand_zero.cr
-
+
ameba/rule/lint/redundant_string_coercion.cr
-
+
ameba/rule/lint/redundant_with_index.cr
-
+
ameba/rule/lint/redundant_with_object.cr
-
+
ameba/rule/lint/shadowed_argument.cr
-
+
ameba/rule/lint/shadowed_exception.cr
-
+
ameba/rule/lint/shadowing_outer_local_var.cr
-
+
ameba/rule/lint/shared_var_in_fiber.cr
-
+
ameba/rule/lint/spec_focus.cr
-
+
ameba/rule/lint/syntax.cr
-
+
ameba/rule/lint/unneeded_disable_directive.cr
-
+
ameba/rule/lint/unreachable_code.cr
-
+
ameba/rule/lint/unused_argument.cr
-
+
ameba/rule/lint/useless_assign.cr
-
+
ameba/rule/lint/useless_condition_in_when.cr
diff --git a/Ameba/Rule/Lint/AmbiguousAssignment.html b/Ameba/Rule/Lint/AmbiguousAssignment.html
index cd8673d1..248aa4fe 100644
--- a/Ameba/Rule/Lint/AmbiguousAssignment.html
+++ b/Ameba/Rule/Lint/AmbiguousAssignment.html
@@ -814,7 +814,7 @@ x != y # or x = !y
-
+
ameba/rule/lint/ambiguous_assignment.cr
@@ -1215,7 +1215,7 @@ x != y # or x = !y
map
.
-
+
ameba/rule/performance/map_instead_of_block.cr
@@ -1198,7 +1198,7 @@ that follow map
.
map
.
map
.
if
, unless
, case,
-
+
ameba/rule/style/parentheses_around_condition.cr
@@ -1148,7 +1148,7 @@ around the condition of if
, unless
, case,
if
, unless
, case,
is_404?
).
-
+
ameba/rule/style/predicate_name.cr
@@ -1117,7 +1117,7 @@ the ones that are not valid Crystal code (e.g. is_404?
).
is_404?
).
nil
-
+
ameba/rule/style/redundant_next.cr
@@ -1353,7 +1353,7 @@ without arguments. Sometimes such statements are used to yild the nil
- [View source]
+ [View source]
@@ -1590,7 +1590,7 @@ without arguments. Sometimes such statements are used to yild the nil
- [View source]
+ [View source]
@@ -1606,7 +1606,7 @@ without arguments. Sometimes such statements are used to yild the nil
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/RedundantReturn.html b/Ameba/Rule/Style/RedundantReturn.html
index f36b542d..daccad86 100644
--- a/Ameba/Rule/Style/RedundantReturn.html
+++ b/Ameba/Rule/Style/RedundantReturn.html
@@ -870,7 +870,7 @@ without arguments. Sometimes such returns are used to return the nil
-
+
ameba/rule/style/redundant_return.cr
@@ -1347,7 +1347,7 @@ without arguments. Sometimes such returns are used to return the nil
- [View source]
+ [View source]
@@ -1584,7 +1584,7 @@ without arguments. Sometimes such returns are used to return the nil
- [View source]
+ [View source]
@@ -1600,7 +1600,7 @@ without arguments. Sometimes such returns are used to return the nil
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/TypeNames.html b/Ameba/Rule/Style/TypeNames.html
index d0cf1919..ce646b46 100644
--- a/Ameba/Rule/Style/TypeNames.html
+++ b/Ameba/Rule/Style/TypeNames.html
@@ -839,7 +839,7 @@
-
+
ameba/rule/style/type_names.cr
@@ -1173,7 +1173,7 @@
- [View source]
+ [View source]
@@ -1354,7 +1354,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/UnlessElse.html b/Ameba/Rule/Style/UnlessElse.html
index 699b128c..9f2d4376 100644
--- a/Ameba/Rule/Style/UnlessElse.html
+++ b/Ameba/Rule/Style/UnlessElse.html
@@ -826,7 +826,7 @@ an if
, so the previous invalid example would become this:
-
+
ameba/rule/style/unless_else.cr
@@ -1147,7 +1147,7 @@ an if
, so the previous invalid example would become this:
- [View source]
+ [View source]
@@ -1328,7 +1328,7 @@ an if
, so the previous invalid example would become this:
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/VariableNames.html b/Ameba/Rule/Style/VariableNames.html
index e0a9781e..6fff339a 100644
--- a/Ameba/Rule/Style/VariableNames.html
+++ b/Ameba/Rule/Style/VariableNames.html
@@ -810,7 +810,7 @@ wrong_Name = 2
-
+
ameba/rule/style/variable_names.cr
@@ -1122,7 +1122,7 @@ wrong_Name = 2
- [View source]
+ [View source]
@@ -1303,7 +1303,7 @@ wrong_Name = 2
- [View source]
+ [View source]
@@ -1331,7 +1331,7 @@ that are tested by this rule, it should add an issue.
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/VerboseBlock.html b/Ameba/Rule/Style/VerboseBlock.html
index c66c673f..aefeaeab 100644
--- a/Ameba/Rule/Style/VerboseBlock.html
+++ b/Ameba/Rule/Style/VerboseBlock.html
@@ -817,7 +817,7 @@ argument as a receiver, that can be collapsed into a short form.
-
+
ameba/rule/style/verbose_block.cr
@@ -1291,7 +1291,7 @@ argument as a receiver, that can be collapsed into a short form.
- [View source]
+ [View source]
@@ -1668,7 +1668,7 @@ argument as a receiver, that can be collapsed into a short form.
- [View source]
+ [View source]
diff --git a/Ameba/Rule/Style/WhileTrue.html b/Ameba/Rule/Style/WhileTrue.html
index ff5ef02b..db19e3c4 100644
--- a/Ameba/Rule/Style/WhileTrue.html
+++ b/Ameba/Rule/Style/WhileTrue.html
@@ -813,7 +813,7 @@
-
+
ameba/rule/style/while_true.cr
@@ -1121,7 +1121,7 @@
- [View source]
+ [View source]
@@ -1302,7 +1302,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Runner.html b/Ameba/Runner.html
index 06493324..b9749a16 100644
--- a/Ameba/Runner.html
+++ b/Ameba/Runner.html
@@ -790,7 +790,7 @@ runner.run.success? # => true or false
-
+
ameba/runner.cr
@@ -923,7 +923,7 @@ config.formatter = formatter
false
if no issues were corrected.
false
if no issues were corrected.
:hello, :world
will be replaced by :hi
.
-
+
ameba/source/rewriter.cr
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
:hello, :world
will be replaced by :hi
.
View source]
+ [View source]
@@ -989,7 +989,7 @@ text via View source]
+ [View source]
@@ -1023,7 +1023,7 @@ code line number that each annotation corresponds to.
- [View source]
+ [View source]
@@ -1060,7 +1060,7 @@ code line number that each annotation corresponds to.
- [View source]
+ [View source]
@@ -1082,7 +1082,7 @@ The prefix is empty if the annotation is at the end of a code line.
- [View source]
+ [View source]
@@ -1098,7 +1098,7 @@ The prefix is empty if the annotation is at the end of a code line.
- [View source]
+ [View source]
@@ -1135,7 +1135,7 @@ source1.to_s == source2.to_s # => true
- [View source]
+ [View source]
diff --git a/Ameba/Spec/BeValid.html b/Ameba/Spec/BeValid.html
index 4dcf7f59..055f61f5 100644
--- a/Ameba/Spec/BeValid.html
+++ b/Ameba/Spec/BeValid.html
@@ -771,7 +771,7 @@
-
+
ameba/spec/be_valid.cr
@@ -836,7 +836,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Spec/BeValidExpectation.html b/Ameba/Spec/BeValidExpectation.html
index 3e75394b..0489167d 100644
--- a/Ameba/Spec/BeValidExpectation.html
+++ b/Ameba/Spec/BeValidExpectation.html
@@ -773,7 +773,7 @@
-
+
ameba/spec/be_valid.cr
@@ -896,7 +896,7 @@
- [View source]
+ [View source]
@@ -926,7 +926,7 @@
- [View source]
+ [View source]
@@ -942,7 +942,7 @@
- [View source]
+ [View source]
@@ -958,7 +958,7 @@
- [View source]
+ [View source]
@@ -974,7 +974,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Spec/ExpectIssue.html b/Ameba/Spec/ExpectIssue.html
index eefb2fce..71cb8c90 100644
--- a/Ameba/Spec/ExpectIssue.html
+++ b/Ameba/Spec/ExpectIssue.html
@@ -873,7 +873,7 @@ issue messages with [...]
:
-
+
ameba/spec/expect_issue.cr
@@ -972,7 +972,7 @@ issue messages with [...]
:
- [View source]
+ [View source]
@@ -988,7 +988,7 @@ issue messages with [...]
:
- [View source]
+ [View source]
@@ -1004,7 +1004,7 @@ issue messages with [...]
:
- [View source]
+ [View source]
@@ -1020,7 +1020,7 @@ issue messages with [...]
:
- [View source]
+ [View source]
diff --git a/Ameba/Spec/Util.html b/Ameba/Spec/Util.html
index c364f3be..5921ad1c 100644
--- a/Ameba/Spec/Util.html
+++ b/Ameba/Spec/Util.html
@@ -787,7 +787,7 @@
-
+
ameba/spec/util.cr
@@ -852,7 +852,7 @@
- [View source]
+ [View source]
diff --git a/Ameba/Tokenizer.html b/Ameba/Tokenizer.html
index 635032ed..96a86373 100644
--- a/Ameba/Tokenizer.html
+++ b/Ameba/Tokenizer.html
@@ -789,7 +789,7 @@ tokenizer.run do |token
-
+
ameba/tokenizer.cr
@@ -905,7 +905,7 @@ tokenizer.run do |token
- [View source]
+ [View source]
@@ -928,7 +928,7 @@ tokenizer.run do |token
- [View source]
+ [View source]
@@ -966,7 +966,7 @@ tokenizer.run do |token
- [View source]
+ [View source]
diff --git a/index.html b/index.html
index 8e497954..5f29f1f3 100644
--- a/index.html
+++ b/index.html
@@ -744,6 +744,8 @@
Usage
@@ -759,7 +761,6 @@
@@ -785,26 +786,49 @@ also catches code smells and wrong code constructions.
$ ameba
Inspecting 107 files
-...............F.....................F....................................................................
+...............F.....................FF....................................................................
-src/ameba/formatter/flycheck_formatter.cr:4:33
-[W] Lint/UnusedArgument: Unused argument `location`
-> source.issues.each do |e, location|
- ^
+src/ameba/formatter/flycheck_formatter.cr:6:37
+[W] Lint/UnusedArgument: Unused argument `location`. If it's necessary, use `_` as an argument name to indicate that it won't be used.
+> source.issues.each do |issue, location|
+ ^
-src/ameba/formatter/base_formatter.cr:12:7
+src/ameba/formatter/base_formatter.cr:16:14
[W] Lint/UselessAssign: Useless assignment to variable `s`
> return s += issues.size
^
-Finished in 542.64 milliseconds
-129 inspected, 2 failures
+src/ameba/formatter/base_formatter.cr:16:7 [Correctable]
+[C] Style/RedundantReturn: Redundant `return` detected
+> return s += issues.size
+ ^---------------------^
+
+Finished in 389.45 milliseconds
+107 inspected, 3 failures
Watch a tutorial
🎬 Watch the LuckyCast showing how to use Ameba
+
+
+Autocorrection
+Rules that are marked as [Correctable]
in the output can be automatically corrected using --fix
flag:
+$ ameba --fix
+
+
+Explain issues
+Ameba allows you to dig deeper into an issue, by showing you details about the issue
+and the reasoning by it being reported.
+To be convenient, you can just copy-paste the PATH:line:column
string from the
+report and paste behind the ameba
command to check it out.
+$ ameba crystal/command/format.cr:26:83 # show explanation for the issue
+$ ameba --explain crystal/command/format.cr:26:83 # same thing
development_dependencies:
ameba:
github: crystal-ameba/ameba
- version: ~> 1.0.0
+ version: ~> 1.3.0
Build bin/ameba
binary within your project directory while running shards install
.
You may also want to use it on Travis:
# .travis.yml
@@ -917,17 +941,6 @@ $ ameba --except Style,Lint # runs all rules except rules in Style and Lint gro
Or through the configuration file:
Style/RedundantBegin:
Enabled: false
-
-
-Explain issues
-Ameba allows you to dig deeper into an issue, by showing you details about the issue
-and the reasoning by it being reported.
-To be convenient, you can just copy-paste the PATH:line:column
string from the
-report and paste behind the ameba
command to check it out.
-$ ameba crystal/command/format.cr:26:83 # show explanation for the issue
-$ ameba --explain crystal/command/format.cr:26:83 # same thing
Contributors