gitlabhq/gitlabhq

View on GitHub
app/models/note.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class Note has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

class Note < ActiveRecord::Base
  include Mentionable

  attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id,
                  :attachment, :line_code, :commit_id
Severity: Minor
Found in app/models/note.rb - About 3 hrs to fix

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

      def self.create_status_change_note(noteable, project, author, status, source)
    Severity: Minor
    Found in app/models/note.rb - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status