app/models/poll/stats.rb
Class Stats
has 28 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Stats
def initialize(poll)
@poll = poll
end
Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
total_valid_votes total_white_votes total_null_votes valid_percentage_web valid_percentage_booth
- Exclude checks
Line is too long. [114/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
null_percentage_web null_percentage_booth total_null_percentage total_participants_web_percentage
- Exclude checks
Line is too long. [105/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
stats = %w[total_participants total_participants_web total_web_valid total_web_white total_web_null
- Exclude checks
Line is too long. [106/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
total_valid_percentage white_percentage_web white_percentage_booth total_white_percentage
- Exclude checks