maestrodev/maestro-rightscale-plugin

View on GitHub

Showing 122 of 122 total issues

Avoid too many return statements within this method.
Open

          return Result.new(:success => false, :errors => [Exception.new('No refresh token was specified, nor was a username/password/account')])
Severity: Major
Found in src/rightscale_api_helper.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                      return Result.new(:success => false, :errors => [Exception.new(data['error_description'])], :value => data)
    Severity: Major
    Found in src/rightscale_api_helper.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                        return Result.new(:success => false, :errors => [Exception.new(result.to_hash['error_description'])])
      Severity: Major
      Found in src/rightscale_api_helper.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return Result.new(:success => false, :errors => [Exception.new(e.response['error_description'])], :value => e.response)
        Severity: Major
        Found in src/rightscale_api_helper.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return Result.new(:success => true, :value => server)
          Severity: Major
          Found in src/rightscale_api_helper.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                      return Result.new(:success => false, :errors => [Exception.new(e.response['error_description'])], :value => e.response)
            Severity: Major
            Found in src/rightscale_api_helper.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                return Result.new(:success => false, :errors => [Exception.new('CloudFlow failed to complete successfully')])
              Severity: Major
              Found in src/rightscale_api_helper.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                  return Result.new(:success => false, :errors => [Exception.new(response_hash['summary'])])
                Severity: Major
                Found in src/rightscale_api_helper.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                    return Result.new(:success => true, :value => access_token)
                  Severity: Major
                  Found in src/rightscale_api_helper.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return Result.new(:success => false, :errors => [Exception.new("Timed out after #{timeout}s waiting for Server (id=#{server_id}, name=#{server.name}, deployment_id=#{deployment_id}, deployment_name=#{deployment_name}) to reach state #{state}, currently in state #{server.state}")], :value => server)
                    Severity: Major
                    Found in src/rightscale_api_helper.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                return Result.new(:success => false, :errors => [e])
                      Severity: Major
                      Found in src/rightscale_api_helper.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return Result.new(:success => false, :errors => result.errors, :value => instance)
                        Severity: Major
                        Found in src/rightscale_api_helper.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return Result.new(:success => true, :errors => [e])
                          Severity: Major
                          Found in src/rightscale_api_helper.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                              return Result.new(:success => false, :errors => [Exception.new(result.to_hash['error_description'])])
                            Severity: Major
                            Found in src/rightscale_api_helper.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return Result.new(:success => false, :errors => result.errors, :notices => result.notices)
                              Severity: Major
                              Found in src/rightscale_api_helper.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return Result.new(:success => false, :errors => [e])
                                Severity: Major
                                Found in src/rightscale_api_helper.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                    return Result.new(:success => false, :errors => [Exception.new("#{reponse.code} #{response}")])
                                  Severity: Major
                                  Found in src/rightscale_api_helper.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return Result.new(:success => true, :value => process_id)
                                    Severity: Major
                                    Found in src/rightscale_api_helper.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return Result.new(:success => false, :errors => result.errors, :value => result.value)
                                      Severity: Major
                                      Found in src/rightscale_api_helper.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                  return Result.new(:success => false, :errors => [Exception.new(e.response['error_description'])], :value => e.response)
                                        Severity: Major
                                        Found in src/rightscale_api_helper.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language