fix reek config

This commit is contained in:
Torsten Rüger 2019-09-24 22:34:01 +03:00
parent 41eccb9382
commit 42ed70b50b
1 changed files with 37 additions and 39 deletions

View File

@ -1,40 +1,38 @@
--- ---
TooManyStatements: detectors:
enabled: true TooManyStatements:
max_statements: 8 enabled: true
DuplicateMethodCall: max_statements: 8
max_calls: 2 DuplicateMethodCall:
FeatureEnvy: max_calls: 2
exclude: FeatureEnvy:
- "Vool::Compiler" exclude:
- "RubyX::RubyCompiler" - "RubyX::RubyCompiler"
- "Risc::Interpreter" - "Risc::Interpreter"
- "Risc::TextWriter" - "Risc::TextWriter"
- "Arm::Translator" - "Arm::Translator"
- "Vm::ToCode" TooManyMethods:
TooManyMethods: max_methods: 30
max_methods: 30 exclude:
exclude: - "RubyX::RubyCompiler"
- "Vool::Compiler" - "Ruby::RubyCompiler"
- "RubyX::RubyCompiler" - "Risc::Interpreter"
- "Ruby::RubyCompiler" - "Risc::TextWriter"
- "Risc::Interpreter" - "Arm::Translator"
- "Risc::TextWriter" - "Util::List"
- "Arm::Translator" UtilityFunction:
- "Util::List" exclude:
UtilityFunction: - "RubyX::RubyCompiler"
exclude: - "Risc::Interpreter"
- "Vool::Compiler" - "Risc::TextWriter"
- "RubyX::RubyCompiler" - "Arm::Translator"
- "Risc::Interpreter" UncommunicativeMethodName:
- "Risc::TextWriter" exclude:
- "Arm::Translator" - "RubyX::RubyCompiler"
- "Vm::ToCode" - "Risc::TextWriter"
UncommunicativeMethodName: - "Risc::Interpreter"
exclude: - "Arm::Translator"
- "Vool::Compiler" exclude_paths:
- "RubyX::RubyCompiler" - test
- "Risc::TextWriter" - vendor
- "Risc::Interpreter" - stash
- "Arm::Translator"
- "Vm::ToCode"