lib/sinatra/slack/helpers/action_request.rb
Assignment Branch Condition size for parse is too high. [15.17/15] Open
Open
def self.parse(params)
payload = JSON.parse params['payload']
return unless payload['type'] == 'interactive_message'
- Read upRead up
- Create a ticketCreate a ticket
- 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
Line is too long. [94/80] Open
Open
value = action['selected_options'].first['value'] if action.key?('selected_options')
- Create a ticketCreate a ticket
- Exclude checks