Merge pull request #210 from crystal-ameba/tweak-verbose-block-rule-defaults

This commit is contained in:
Sijawusz Pur Rahnama 2021-03-03 16:12:49 +01:00 committed by GitHub
commit e32f1dd673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -128,6 +128,7 @@ module Ameba::Rule::Style
end
)
rule = VerboseBlock.new
.tap(&.exclude_multiple_line_blocks = false)
rule
.tap(&.max_line_length = 60)
.catch(source).should be_valid

View file

@ -20,7 +20,7 @@ module Ameba::Rule::Style
# Style/VerboseBlock:
# Enabled: true
# ExcludeMultipleLineBlocks: true
# ExcludeCallsWithBlocks: false
# ExcludeCallsWithBlocks: true
# ExcludePrefixOperators: true
# ExcludeOperators: false
# ExcludeSetters: false
@ -31,8 +31,8 @@ module Ameba::Rule::Style
properties do
description "Identifies usage of collapsible single expression blocks."
exclude_multiple_line_blocks true
exclude_calls_with_block true
exclude_multiple_line_blocks false
exclude_prefix_operators true
exclude_operators false
exclude_setters false