app/models/poll/stats.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class Stats has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Stats

    def initialize(poll)
      @poll = poll
    end
Severity: Minor
Found in app/models/poll/stats.rb - About 3 hrs to fix

    Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

                     total_valid_votes total_white_votes total_null_votes valid_percentage_web valid_percentage_booth
    Severity: Minor
    Found in app/models/poll/stats.rb by rubocop

    Line is too long. [114/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

                     null_percentage_web null_percentage_booth total_null_percentage total_participants_web_percentage
    Severity: Minor
    Found in app/models/poll/stats.rb by rubocop

    Line is too long. [105/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

          stats = %w[total_participants total_participants_web total_web_valid total_web_white total_web_null
    Severity: Minor
    Found in app/models/poll/stats.rb by rubocop

    Line is too long. [106/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    Open

                     total_valid_percentage white_percentage_web white_percentage_booth total_white_percentage
    Severity: Minor
    Found in app/models/poll/stats.rb by rubocop

    There are no issues that match your filters.

    Category
    Status