ari/jobsworth

View on GitHub
app/models/project_permission.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method remove has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def remove(perm)
    case perm
      when 'comment' then
        self.can_comment = false
      when 'work' then
Severity: Minor
Found in app/models/project_permission.rb - About 1 hr to fix

    Method set has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def set(perm)
        case perm
          when 'comment' then
            self.can_comment = 1
          when 'work' then
    Severity: Minor
    Found in app/models/project_permission.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status