coding-chimp/onesignal

View on GitHub
lib/onesignal/api/default_api.rb

Summary

Maintainability
F
1 mo
Test Coverage

File default_api.rb has 1493 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'cgi'

module OneSignal
  class DefaultApi
    attr_accessor :api_client
Severity: Major
Found in lib/onesignal/api/default_api.rb - About 3 days to fix

    Class DefaultApi has 75 methods (exceeds 20 allowed). Consider refactoring.
    Open

      class DefaultApi
        attr_accessor :api_client
    
        def initialize(api_client = ApiClient.default)
          @api_client = api_client
    Severity: Major
    Found in lib/onesignal/api/default_api.rb - About 1 day to fix

      Method create_subscription_with_http_info has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def create_subscription_with_http_info(app_id, alias_label, alias_id, create_subscription_request_body, opts = {})
            if @api_client.config.debugging
              @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...'
            end
            # verify the required parameter 'app_id' is set
      Severity: Minor
      Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

        Method identify_user_by_alias_with_http_info has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def identify_user_by_alias_with_http_info(app_id, alias_label, alias_id, user_identity_request_body, opts = {})
              if @api_client.config.debugging
                @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_alias ...'
              end
              # verify the required parameter 'app_id' is set
        Severity: Minor
        Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

          Method update_user_with_http_info has 41 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              def update_user_with_http_info(app_id, alias_label, alias_id, update_user_request, opts = {})
                if @api_client.config.debugging
                  @api_client.config.logger.debug 'Calling API: DefaultApi.update_user ...'
                end
                # verify the required parameter 'app_id' is set
          Severity: Minor
          Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

            Method begin_live_activity_with_http_info has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                def begin_live_activity_with_http_info(app_id, activity_id, begin_live_activity_request, opts = {})
                  if @api_client.config.debugging
                    @api_client.config.logger.debug 'Calling API: DefaultApi.begin_live_activity ...'
                  end
                  # verify the required parameter 'app_id' is set
            Severity: Minor
            Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

              Method transfer_subscription_with_http_info has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def transfer_subscription_with_http_info(app_id, subscription_id, transfer_subscription_request_body, opts = {})
                    if @api_client.config.debugging
                      @api_client.config.logger.debug 'Calling API: DefaultApi.transfer_subscription ...'
                    end
                    # verify the required parameter 'app_id' is set
              Severity: Minor
              Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                Method identify_user_by_subscription_id_with_http_info has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    def identify_user_by_subscription_id_with_http_info(app_id, subscription_id, user_identity_request_body, opts = {})
                      if @api_client.config.debugging
                        @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_subscription_id ...'
                      end
                      # verify the required parameter 'app_id' is set
                Severity: Minor
                Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                  Method update_subscription_with_http_info has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      def update_subscription_with_http_info(app_id, subscription_id, update_subscription_request_body, opts = {})
                        if @api_client.config.debugging
                          @api_client.config.logger.debug 'Calling API: DefaultApi.update_subscription ...'
                        end
                        # verify the required parameter 'app_id' is set
                  Severity: Minor
                  Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                    Method update_live_activity_with_http_info has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def update_live_activity_with_http_info(app_id, activity_id, update_live_activity_request, opts = {})
                          if @api_client.config.debugging
                            @api_client.config.logger.debug 'Calling API: DefaultApi.update_live_activity ...'
                          end
                          # verify the required parameter 'app_id' is set
                    Severity: Minor
                    Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                      Method delete_alias_with_http_info has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def delete_alias_with_http_info(app_id, alias_label, alias_id, alias_label_to_delete, opts = {})
                            if @api_client.config.debugging
                              @api_client.config.logger.debug 'Calling API: DefaultApi.delete_alias ...'
                            end
                            # verify the required parameter 'app_id' is set
                      Severity: Minor
                      Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                        Method get_outcomes_with_http_info has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            def get_outcomes_with_http_info(app_id, outcome_names, opts = {})
                              if @api_client.config.debugging
                                @api_client.config.logger.debug 'Calling API: DefaultApi.get_outcomes ...'
                              end
                              # verify the required parameter 'app_id' is set
                        Severity: Minor
                        Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                          Method get_notifications_with_http_info has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              def get_notifications_with_http_info(app_id, opts = {})
                                if @api_client.config.debugging
                                  @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...'
                                end
                                # verify the required parameter 'app_id' is set
                          Severity: Minor
                          Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                            Method update_player_tags_with_http_info has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                def update_player_tags_with_http_info(app_id, external_user_id, opts = {})
                                  if @api_client.config.debugging
                                    @api_client.config.logger.debug 'Calling API: DefaultApi.update_player_tags ...'
                                  end
                                  # verify the required parameter 'app_id' is set
                            Severity: Minor
                            Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                              Method update_app_with_http_info has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  def update_app_with_http_info(app_id, app, opts = {})
                                    if @api_client.config.debugging
                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_app ...'
                                    end
                                    # verify the required parameter 'app_id' is set
                              Severity: Minor
                              Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                Method create_user_with_http_info has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def create_user_with_http_info(app_id, user, opts = {})
                                      if @api_client.config.debugging
                                        @api_client.config.logger.debug 'Calling API: DefaultApi.create_user ...'
                                      end
                                      # verify the required parameter 'app_id' is set
                                Severity: Minor
                                Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                  Method update_player_with_http_info has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      def update_player_with_http_info(player_id, player, opts = {})
                                        if @api_client.config.debugging
                                          @api_client.config.logger.debug 'Calling API: DefaultApi.update_player ...'
                                        end
                                        # verify the required parameter 'player_id' is set
                                  Severity: Minor
                                  Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                    Method get_notification_history_with_http_info has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        def get_notification_history_with_http_info(notification_id, get_notification_request_body, opts = {})
                                          if @api_client.config.debugging
                                            @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_history ...'
                                          end
                                          # verify the required parameter 'notification_id' is set
                                    Severity: Minor
                                    Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                      Method delete_user_with_http_info has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          def delete_user_with_http_info(app_id, alias_label, alias_id, opts = {})
                                            if @api_client.config.debugging
                                              @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user ...'
                                            end
                                            # verify the required parameter 'app_id' is set
                                      Severity: Minor
                                      Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                        Method fetch_user_with_http_info has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            def fetch_user_with_http_info(app_id, alias_label, alias_id, opts = {})
                                              if @api_client.config.debugging
                                                @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user ...'
                                              end
                                              # verify the required parameter 'app_id' is set
                                        Severity: Minor
                                        Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                          Method end_live_activity_with_http_info has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              def end_live_activity_with_http_info(app_id, activity_id, subscription_id, opts = {})
                                                if @api_client.config.debugging
                                                  @api_client.config.logger.debug 'Calling API: DefaultApi.end_live_activity ...'
                                                end
                                                # verify the required parameter 'app_id' is set
                                          Severity: Minor
                                          Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                            Method fetch_user_identity_with_http_info has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                def fetch_user_identity_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                  if @api_client.config.debugging
                                                    @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user_identity ...'
                                                  end
                                                  # verify the required parameter 'app_id' is set
                                            Severity: Minor
                                            Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                              Method get_player_with_http_info has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  def get_player_with_http_info(app_id, player_id, opts = {})
                                                    if @api_client.config.debugging
                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_player ...'
                                                    end
                                                    # verify the required parameter 'app_id' is set
                                              Severity: Minor
                                              Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                Method create_app_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    def create_app_with_http_info(app, opts = {})
                                                      if @api_client.config.debugging
                                                        @api_client.config.logger.debug 'Calling API: DefaultApi.create_app ...'
                                                      end
                                                      # verify the required parameter 'app' is set
                                                Severity: Minor
                                                Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                  Method export_players_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      def export_players_with_http_info(app_id, opts = {})
                                                        if @api_client.config.debugging
                                                          @api_client.config.logger.debug 'Calling API: DefaultApi.export_players ...'
                                                        end
                                                        # verify the required parameter 'app_id' is set
                                                  Severity: Minor
                                                  Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                    Method delete_player_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        def delete_player_with_http_info(app_id, player_id, opts = {})
                                                          if @api_client.config.debugging
                                                            @api_client.config.logger.debug 'Calling API: DefaultApi.delete_player ...'
                                                          end
                                                          # verify the required parameter 'app_id' is set
                                                    Severity: Minor
                                                    Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                      Method get_notification_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                          def get_notification_with_http_info(app_id, notification_id, opts = {})
                                                            if @api_client.config.debugging
                                                              @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification ...'
                                                            end
                                                            # verify the required parameter 'app_id' is set
                                                      Severity: Minor
                                                      Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                        Method cancel_notification_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            def cancel_notification_with_http_info(app_id, notification_id, opts = {})
                                                              if @api_client.config.debugging
                                                                @api_client.config.logger.debug 'Calling API: DefaultApi.cancel_notification ...'
                                                              end
                                                              # verify the required parameter 'app_id' is set
                                                        Severity: Minor
                                                        Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                          Method create_notification_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              def create_notification_with_http_info(notification, opts = {})
                                                                if @api_client.config.debugging
                                                                  @api_client.config.logger.debug 'Calling API: DefaultApi.create_notification ...'
                                                                end
                                                                # verify the required parameter 'notification' is set
                                                          Severity: Minor
                                                          Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                            Method create_segments_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                def create_segments_with_http_info(app_id, opts = {})
                                                                  if @api_client.config.debugging
                                                                    @api_client.config.logger.debug 'Calling API: DefaultApi.create_segments ...'
                                                                  end
                                                                  # verify the required parameter 'app_id' is set
                                                            Severity: Minor
                                                            Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                              Method create_player_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  def create_player_with_http_info(player, opts = {})
                                                                    if @api_client.config.debugging
                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_player ...'
                                                                    end
                                                                    # verify the required parameter 'player' is set
                                                              Severity: Minor
                                                              Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                Method export_events_with_http_info has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    def export_events_with_http_info(notification_id, app_id, opts = {})
                                                                      if @api_client.config.debugging
                                                                        @api_client.config.logger.debug 'Calling API: DefaultApi.export_events ...'
                                                                      end
                                                                      # verify the required parameter 'notification_id' is set
                                                                Severity: Minor
                                                                Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                  Method get_eligible_iams_with_http_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      def get_eligible_iams_with_http_info(app_id, subscription_id, opts = {})
                                                                        if @api_client.config.debugging
                                                                          @api_client.config.logger.debug 'Calling API: DefaultApi.get_eligible_iams ...'
                                                                        end
                                                                        # verify the required parameter 'app_id' is set
                                                                  Severity: Minor
                                                                  Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                    Method fetch_aliases_with_http_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        def fetch_aliases_with_http_info(app_id, subscription_id, opts = {})
                                                                          if @api_client.config.debugging
                                                                            @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_aliases ...'
                                                                          end
                                                                          # verify the required parameter 'app_id' is set
                                                                    Severity: Minor
                                                                    Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                      Method get_players_with_http_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          def get_players_with_http_info(app_id, opts = {})
                                                                            if @api_client.config.debugging
                                                                              @api_client.config.logger.debug 'Calling API: DefaultApi.get_players ...'
                                                                            end
                                                                            # verify the required parameter 'app_id' is set
                                                                      Severity: Minor
                                                                      Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                        Method delete_subscription_with_http_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            def delete_subscription_with_http_info(app_id, subscription_id, opts = {})
                                                                              if @api_client.config.debugging
                                                                                @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...'
                                                                              end
                                                                              # verify the required parameter 'app_id' is set
                                                                        Severity: Minor
                                                                        Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                          Method delete_segments_with_http_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              def delete_segments_with_http_info(app_id, segment_id, opts = {})
                                                                                if @api_client.config.debugging
                                                                                  @api_client.config.logger.debug 'Calling API: DefaultApi.delete_segments ...'
                                                                                end
                                                                                # verify the required parameter 'app_id' is set
                                                                          Severity: Minor
                                                                          Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                            Method get_app_with_http_info has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                def get_app_with_http_info(app_id, opts = {})
                                                                                  if @api_client.config.debugging
                                                                                    @api_client.config.logger.debug 'Calling API: DefaultApi.get_app ...'
                                                                                  end
                                                                                  # verify the required parameter 'app_id' is set
                                                                            Severity: Minor
                                                                            Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                              Method get_outcomes_with_http_info has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def get_outcomes_with_http_info(app_id, outcome_names, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_outcomes ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 1 hr to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method begin_live_activity_with_http_info has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def begin_live_activity_with_http_info(app_id, activity_id, begin_live_activity_request, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.begin_live_activity ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 55 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method identify_user_by_alias_with_http_info has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def identify_user_by_alias_with_http_info(app_id, alias_label, alias_id, user_identity_request_body, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_alias ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 55 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method create_subscription_with_http_info has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def create_subscription_with_http_info(app_id, alias_label, alias_id, create_subscription_request_body, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 55 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method get_notifications_with_http_info has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def get_notifications_with_http_info(app_id, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_notifications ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 55 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method update_user_with_http_info has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def update_user_with_http_info(app_id, alias_label, alias_id, update_user_request, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_user ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 55 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method delete_alias_with_http_info has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def delete_alias_with_http_info(app_id, alias_label, alias_id, alias_label_to_delete, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_alias ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method identify_user_by_subscription_id_with_http_info has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def identify_user_by_subscription_id_with_http_info(app_id, subscription_id, user_identity_request_body, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_subscription_id ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method transfer_subscription_with_http_info has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def transfer_subscription_with_http_info(app_id, subscription_id, transfer_subscription_request_body, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.transfer_subscription ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method update_live_activity_with_http_info has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def update_live_activity_with_http_info(app_id, activity_id, update_live_activity_request, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_live_activity ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method update_subscription_with_http_info has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                                                              Open

                                                                                  def update_subscription_with_http_info(app_id, subscription_id, update_subscription_request_body, opts = {})
                                                                                    if @api_client.config.debugging
                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_subscription ...'
                                                                                    end
                                                                                    # verify the required parameter 'app_id' is set
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 45 mins to fix

                                                                              Cognitive Complexity

                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                              Further reading

                                                                              Method create_subscription has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                              Open

                                                                                  def create_subscription(app_id, alias_label, alias_id, create_subscription_request_body, opts = {})
                                                                              Severity: Minor
                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                Method identify_user_by_alias has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                Open

                                                                                    def identify_user_by_alias(app_id, alias_label, alias_id, user_identity_request_body, opts = {})
                                                                                Severity: Minor
                                                                                Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                  Method delete_alias_with_http_info has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                  Open

                                                                                      def delete_alias_with_http_info(app_id, alias_label, alias_id, alias_label_to_delete, opts = {})
                                                                                  Severity: Minor
                                                                                  Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                    Method delete_alias has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                    Open

                                                                                        def delete_alias(app_id, alias_label, alias_id, alias_label_to_delete, opts = {})
                                                                                    Severity: Minor
                                                                                    Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                      Method update_user_with_http_info has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                          def update_user_with_http_info(app_id, alias_label, alias_id, update_user_request, opts = {})
                                                                                      Severity: Minor
                                                                                      Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                        Method create_subscription_with_http_info has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                            def create_subscription_with_http_info(app_id, alias_label, alias_id, create_subscription_request_body, opts = {})
                                                                                        Severity: Minor
                                                                                        Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                          Method identify_user_by_alias_with_http_info has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                          Open

                                                                                              def identify_user_by_alias_with_http_info(app_id, alias_label, alias_id, user_identity_request_body, opts = {})
                                                                                          Severity: Minor
                                                                                          Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                            Method update_user has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                            Open

                                                                                                def update_user(app_id, alias_label, alias_id, update_user_request, opts = {})
                                                                                            Severity: Minor
                                                                                            Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Method update_app_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def update_app_with_http_info(app_id, app, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_app ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method fetch_user_identity_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_user_identity_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user_identity ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method end_live_activity_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def end_live_activity_with_http_info(app_id, activity_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.end_live_activity ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method fetch_user_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_user_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method get_players_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_players_with_http_info(app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_players ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method create_user_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def create_user_with_http_info(app_id, user, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method update_player_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def update_player_with_http_info(player_id, player, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'player_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method update_player_tags_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def update_player_tags_with_http_info(app_id, external_user_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_player_tags ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method delete_user_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def delete_user_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method get_notification_history_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_notification_history_with_http_info(notification_id, get_notification_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_history ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method get_player_with_http_info has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_player_with_http_info(app_id, player_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 35 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method cancel_notification_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def cancel_notification_with_http_info(app_id, notification_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.cancel_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method export_events_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def export_events_with_http_info(notification_id, app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.export_events ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method create_app_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def create_app_with_http_info(app, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_app ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method delete_segments_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def delete_segments_with_http_info(app_id, segment_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_segments ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method create_segments_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def create_segments_with_http_info(app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_segments ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method delete_subscription_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def delete_subscription_with_http_info(app_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_subscription ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method get_notification_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_notification_with_http_info(app_id, notification_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method create_notification_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def create_notification_with_http_info(notification, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method export_players_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def export_players_with_http_info(app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.export_players ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method delete_player_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def delete_player_with_http_info(app_id, player_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method create_player_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def create_player_with_http_info(player, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'player' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method fetch_aliases_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_aliases_with_http_info(app_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_aliases ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Method get_eligible_iams_with_http_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  def get_eligible_iams_with_http_info(app_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_eligible_iams ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Minor
                                                                                              Found in lib/onesignal/api/default_api.rb - About 25 mins to fix

                                                                                              Cognitive Complexity

                                                                                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                                                                              A method's cognitive complexity is based on a few simple rules:

                                                                                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                                                                              • Code is considered more complex for each "break in the linear flow of the code"
                                                                                              • Code is considered more complex when "flow breaking structures are nested"

                                                                                              Further reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def update_user_with_http_info(app_id, alias_label, alias_id, update_user_request, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 465..527
                                                                                              lib/onesignal/api/default_api.rb on lines 2040..2102

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 196.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_subscription_with_http_info(app_id, alias_label, alias_id, create_subscription_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_subscription ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 2040..2102
                                                                                              lib/onesignal/api/default_api.rb on lines 2662..2724

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 196.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def identify_user_by_alias_with_http_info(app_id, alias_label, alias_id, user_identity_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_alias ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 465..527
                                                                                              lib/onesignal/api/default_api.rb on lines 2662..2724

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 196.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def transfer_subscription_with_http_info(app_id, subscription_id, transfer_subscription_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.transfer_subscription ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 2122..2180
                                                                                              lib/onesignal/api/default_api.rb on lines 2354..2412

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 176.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def update_live_activity_with_http_info(app_id, activity_id, update_live_activity_request, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_live_activity ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 2122..2180
                                                                                              lib/onesignal/api/default_api.rb on lines 2200..2258

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 176.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def identify_user_by_subscription_id_with_http_info(app_id, subscription_id, user_identity_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.identify_user_by_subscription_id ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 2200..2258
                                                                                              lib/onesignal/api/default_api.rb on lines 2354..2412

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 176.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def begin_live_activity_with_http_info(app_id, activity_id, begin_live_activity_request, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.begin_live_activity ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 2582..2640

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 174.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def update_subscription_with_http_info(app_id, subscription_id, update_subscription_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_subscription ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 41..99

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 174.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_user_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 1332..1385

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 169.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_user_identity_with_http_info(app_id, alias_label, alias_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_user_identity ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 5 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 1259..1312

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 169.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_user_with_http_info(app_id, user, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_user ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 1662..1716
                                                                                              lib/onesignal/api/default_api.rb on lines 2278..2332
                                                                                              lib/onesignal/api/default_api.rb on lines 2432..2486

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 156.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def update_app_with_http_info(app_id, app, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_app ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 545..599
                                                                                              lib/onesignal/api/default_api.rb on lines 1662..1716
                                                                                              lib/onesignal/api/default_api.rb on lines 2432..2486

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 156.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def get_notification_history_with_http_info(notification_id, get_notification_request_body, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification_history ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 545..599
                                                                                              lib/onesignal/api/default_api.rb on lines 2278..2332
                                                                                              lib/onesignal/api/default_api.rb on lines 2432..2486

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 156.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def update_player_with_http_info(player_id, player, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.update_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'player_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 545..599
                                                                                              lib/onesignal/api/default_api.rb on lines 1662..1716
                                                                                              lib/onesignal/api/default_api.rb on lines 2278..2332

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 156.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def fetch_aliases_with_http_info(app_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_aliases ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 768..817
                                                                                              lib/onesignal/api/default_api.rb on lines 1523..1572

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 149.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def get_eligible_iams_with_http_info(app_id, subscription_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_eligible_iams ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 768..817
                                                                                              lib/onesignal/api/default_api.rb on lines 1190..1239

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 149.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def delete_segments_with_http_info(app_id, segment_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_segments ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 1190..1239
                                                                                              lib/onesignal/api/default_api.rb on lines 1523..1572

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 149.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def export_players_with_http_info(app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.export_players ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 393..443

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 148.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_segments_with_http_info(app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_segments ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 1 other location - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 1122..1172

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 148.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def cancel_notification_with_http_info(app_id, notification_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.cancel_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 698..748
                                                                                              lib/onesignal/api/default_api.rb on lines 1052..1102
                                                                                              lib/onesignal/api/default_api.rb on lines 1592..1642

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 143.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def export_events_with_http_info(notification_id, app_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.export_events ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 119..169
                                                                                              lib/onesignal/api/default_api.rb on lines 698..748
                                                                                              lib/onesignal/api/default_api.rb on lines 1592..1642

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 143.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def get_notification_with_http_info(app_id, notification_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.get_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 119..169
                                                                                              lib/onesignal/api/default_api.rb on lines 698..748
                                                                                              lib/onesignal/api/default_api.rb on lines 1052..1102

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 143.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def delete_player_with_http_info(app_id, player_id, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.delete_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app_id' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 3 other locations - About 4 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 119..169
                                                                                              lib/onesignal/api/default_api.rb on lines 1052..1102
                                                                                              lib/onesignal/api/default_api.rb on lines 1592..1642

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 143.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_app_with_http_info(app, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_app ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'app' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 3 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 255..305
                                                                                              lib/onesignal/api/default_api.rb on lines 323..373

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 136.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_notification_with_http_info(notification, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_notification ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'notification' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 3 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 187..237
                                                                                              lib/onesignal/api/default_api.rb on lines 323..373

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 136.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                              Open

                                                                                                  def create_player_with_http_info(player, opts = {})
                                                                                                    if @api_client.config.debugging
                                                                                                      @api_client.config.logger.debug 'Calling API: DefaultApi.create_player ...'
                                                                                                    end
                                                                                                    # verify the required parameter 'player' is set
                                                                                              Severity: Major
                                                                                              Found in lib/onesignal/api/default_api.rb and 2 other locations - About 3 hrs to fix
                                                                                              lib/onesignal/api/default_api.rb on lines 187..237
                                                                                              lib/onesignal/api/default_api.rb on lines 255..305

                                                                                              Duplicated Code

                                                                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                              Tuning

                                                                                              This issue has a mass of 136.

                                                                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                              Refactorings

                                                                                              Further Reading

                                                                                              There are no issues that match your filters.

                                                                                              Category
                                                                                              Status