gitlabhq/gitlabhq

View on GitHub
app/models/event.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Class Event has 48 methods (exceeds 20 allowed). Consider refactoring.
Open

class Event < ActiveRecord::Base
  attr_accessible :project, :action, :data, :author_id, :project_id,
                  :target_id, :target_type

  default_scope where("author_id IS NOT NULL")
Severity: Minor
Found in app/models/event.rb - About 6 hrs to fix

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

        def create_ref_event(project, user, ref, action = 'add', prefix = 'refs/heads')
    Severity: Minor
    Found in app/models/event.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status