app/models/custom/abilities/administrator.rb
Method initialize
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(user)
merge Abilities::Moderation.new(user)
can :restore, Comment
cannot :restore, Comment, hidden_at: nil
Line is too long. [111/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
cannot :comment_as_moderator, [::Legislation::Question, Legislation::Annotation, ::Legislation::Proposal]
- Exclude checks
Line is too long. [115/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
Legislation::Question, Legislation::Proposal, Legislation::Annotation, Topic]
- Exclude checks
Line is too long. [102/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
can [:index, :read, :new, :create, :update, :destroy, :calculate_winners, :read_results], Budget
- Exclude checks
Line is too long. [138/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
can [:read, :create, :update, :destroy, :add_question, :search_booths, :search_officers, :booth_assignments, :results, :stats], Poll
- Exclude checks
4 trailing blank lines detected. (https://github.com/bbatsov/ruby-style-guide#newline-eof) Open
Open
- Exclude checks