From 11d5bc30e387972e35c55eee9f638e7e8c7d5d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20S=C3=A1nchez=20Lara?= Date: Tue, 19 Jul 2016 18:48:43 +0200 Subject: [PATCH] Allow 2 invocations to the same method At least 2 is really useful for common scenarios of doing something with a value if that value is present: `my_hash['xxx'] = something.value if something.value` --- config.reek | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.reek b/config.reek index 2fe3ed2ab2..1acf184e0f 100644 --- a/config.reek +++ b/config.reek @@ -1,5 +1,10 @@ IrresponsibleModule: enabled: false +DuplicateMethodCall: + enabled: true + exclude: [] + max_calls: 2 + allow_calls: [] UncommunicativeVariableName: enabled: true exclude: []