diff --git a/spec/ameba/rule/style/verbose_block_spec.cr b/spec/ameba/rule/style/verbose_block_spec.cr index 3689cecb..18ffd6fd 100644 --- a/spec/ameba/rule/style/verbose_block_spec.cr +++ b/spec/ameba/rule/style/verbose_block_spec.cr @@ -84,6 +84,7 @@ module Ameba::Rule::Style source = Source.new %( (1..3).sum { |i| +i } (1..3).sum { |i| -i } + (1..3).sum { |i| ~i } ) rule = VerboseBlock.new rule diff --git a/src/ameba/rule/style/verbose_block.cr b/src/ameba/rule/style/verbose_block.cr index d5049091..1a1cbacd 100644 --- a/src/ameba/rule/style/verbose_block.cr +++ b/src/ameba/rule/style/verbose_block.cr @@ -51,7 +51,7 @@ module Ameba::Rule::Style a_location.line_number == b_location.line_number end - private PREFIX_OPERATORS = {"+", "-"} + private PREFIX_OPERATORS = {"+", "-", "~"} private OPERATOR_CHARS = {'[', ']', '!', '=', '>', '<', '~', '+', '-', '*', '/', '%', '^', '|', '&'}