Cimpress-MCP/zanzibar

View on GitHub
lib/zanzibar.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for download_secret_file is too high. [15.26/15]
Open

    def download_secret_file(args = {})
      response = @client.download_file_attachment_by_item_id(args[:scrt_id], args[:scrt_item_id], args[:type])
      raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{response[:errors][:string]}" if response[:errors]
      return write_secret_to_file(args[:path], response)
    rescue Savon::Error => err
Severity: Minor
Found in lib/zanzibar.rb by rubocop

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