Skip to content

Commit

Permalink
wip - lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rarruda committed Nov 15, 2019
1 parent 982dfa2 commit 2483dfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .rubocop.yml
Expand Up @@ -12,12 +12,13 @@ Metrics/MethodLength:
Max: 26
Metrics/BlockLength:
Max: 360

Metrics/AbcSize:
Max: 25
# Metrics/CyclomaticComplexity:
# Max: 19
# Metrics/PerceivedComplexity:
# Max: 19
Metrics/CyclomaticComplexity:
Max: 8
Metrics/PerceivedComplexity:
Max: 8

Style/Documentation:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion lib/unleash/feature_toggle.rb
Expand Up @@ -77,7 +77,7 @@ def am_enabled?(context, default_result)
result =
if self.enabled
self.strategies.empty? ||
self.strategies.select{ |s| strategy_enabled?(s, context) }.any?
self.strategies.any?{ |s| strategy_enabled?(s, context) }
else
default_result
end
Expand Down

0 comments on commit 2483dfd

Please sign in to comment.