cloudamatic/mu

View on GitHub
cookbooks/firewall/libraries/helpers_iptables.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for build_firewall_rule is too high. [75.03/75]
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

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

There are no issues that match your filters.

Category
Status