gitlabhq/gitlab-ci

View on GitHub
app/models/project.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class Project has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

class Project < ActiveRecord::Base
  include ProjectStatus

  has_many :commits, ->() { order('CASE WHEN commits.committed_at IS NULL THEN 0 ELSE 1 END', :committed_at, :id) }, dependent: :destroy
  has_many :builds, through: :commits, dependent: :destroy
Severity: Minor
Found in app/models/project.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status