nunonamorado/sinatra-slack

View on GitHub
lib/sinatra/slack/helpers/action_request.rb

Summary

Maintainability
A
0 mins
Test Coverage

Assignment Branch Condition size for parse is too high. [15.17/15]
Open

        def self.parse(params)
          payload = JSON.parse params['payload']

          return unless payload['type'] == 'interactive_message'

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

Line is too long. [94/80]
Open

          value = action['selected_options'].first['value'] if action.key?('selected_options')

There are no issues that match your filters.

Category
Status