cookbooks/firewall/libraries/helpers_iptables.rb
Assignment Branch Condition size for build_firewall_rule is too high. [75.03/75] Open
Open
def build_firewall_rule(current_node, rule_resource, ipv6 = false)
el5 = current_node['platform_family'] == 'rhel' && Gem::Dependency.new('', '~> 5.0').match?('', current_node['platform_version'])
return rule_resource.raw.strip if rule_resource.raw
firewall_rule = if rule_resource.direction
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric