diff --git a/spec/ameba/ast/visitors/flow_expression_visitor_spec.cr b/spec/ameba/ast/visitors/flow_expression_visitor_spec.cr index 5053ff671..3e69729b0 100644 --- a/spec/ameba/ast/visitors/flow_expression_visitor_spec.cr +++ b/spec/ameba/ast/visitors/flow_expression_visitor_spec.cr @@ -1,8 +1,6 @@ require "../../../spec_helper" module Ameba::AST - source = Source.new "" - describe FlowExpressionVisitor do it "creates an expression for return" do rule = FlowExpressionRule.new diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 346218528..094e0192e 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -6,7 +6,7 @@ module Ameba # Dummy Rule which does nothing. class DummyRule < Rule::Base properties do - description : String = "Dummy rule that does nothing." + description "Dummy rule that does nothing." dummy true end @@ -92,7 +92,7 @@ module Ameba class PerfRule < Rule::Performance::Base properties do - description : String = "Sample performance rule" + description "Sample performance rule" end def test(source) diff --git a/src/ameba/rule/lint/typos.cr b/src/ameba/rule/lint/typos.cr index 09077240f..8cbb85094 100644 --- a/src/ameba/rule/lint/typos.cr +++ b/src/ameba/rule/lint/typos.cr @@ -15,7 +15,7 @@ module Ameba::Rule::Lint class Typos < Base properties do description "Reports typos found in source files" - bin_path : String? = nil + bin_path : String? = nil # ameba:disable Lint/UselessAssign fail_on_error false end diff --git a/src/ameba/rule/style/verbose_block.cr b/src/ameba/rule/style/verbose_block.cr index aaa66d201..8f7e19349 100644 --- a/src/ameba/rule/style/verbose_block.cr +++ b/src/ameba/rule/style/verbose_block.cr @@ -39,8 +39,8 @@ module Ameba::Rule::Style exclude_operators true exclude_setters false - max_line_length : Int32? = nil # 100 - max_length : Int32? = 50 + max_line_length : Int32? = nil # ameba:disable Lint/UselessAssign + max_length : Int32? = 50 # ameba:disable Lint/UselessAssign end MSG = "Use short block notation instead: `%s`"