discourse/discourse

View on GitHub
app/serializers/user_serializer.rb

Summary

Maintainability
D
2 days
Test Coverage

Class UserSerializer has 80 methods (exceeds 20 allowed). Consider refactoring.
Open

class UserSerializer < BasicUserSerializer

  attr_accessor :omit_stats,
                :topic_post_count

Severity: Major
Found in app/serializers/user_serializer.rb - About 1 day to fix

    File user_serializer.rb has 379 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    class UserSerializer < BasicUserSerializer
    
      attr_accessor :omit_stats,
                    :topic_post_count
    
    
    Severity: Minor
    Found in app/serializers/user_serializer.rb - About 5 hrs to fix

      There are no issues that match your filters.

      Category
      Status