openSUSE/open-build-service

View on GitHub
src/api/app/controllers/webui/projects/rebuild_times_controller.rb

Summary

Maintainability
A
2 hrs
Test Coverage
A
94%

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

      def call_diststats(bdep, jobs)
        @timings = {}
        @pngkey = Digest::MD5.hexdigest(params.to_s)
        @rebuildtime = 0

Severity: Minor
Found in src/api/app/controllers/webui/projects/rebuild_times_controller.rb - About 1 hr to fix

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

          def show
            logger.info("Statistics for RebuildTimesController#show: #{User.possibly_nobody.login}")
            @repository = params[:repository]
            @arch = params[:arch]
            @hosts = (params[:hosts] || 40).to_i
    Severity: Minor
    Found in src/api/app/controllers/webui/projects/rebuild_times_controller.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status