onthebeach/capistrano-slackify

View on GitHub

Showing 2 of 2 total issues

Method default_field_map has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def default_field_map
      {
        'status' => {
          title: 'Status',
          value: @status,
Severity: Minor
Found in lib/slackify.rb - About 1 hr to fix

    Method payload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def payload(channel)
          fields = fetch(:slack_fields).each_with_object([]) { |field, fields|
            if fields_map[field].fetch(:value).respond_to?(:call)
              field_data = fields_map[field]
              field_data[:value] = field_data.fetch(:value).call
    Severity: Minor
    Found in lib/slackify.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language