americanexpress/xcode-result-bundle-processor

View on GitHub
lib/xcoderesultbundleprocessor/test_summaries/test_summaries.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for parse is too high. [20.98/20]
Open

      def self.parse(activity_summary)
        screenshot      = Array(activity_summary['Attachments']).find { |attachment| attachment['Name'] == 'Screenshot' }
        screenshot_path = nil
        unless screenshot.nil?
          screenshot_path = screenshot['FileName']

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