Enable Style/CommentAnnotation Rubocop cop

This cop checks that comment annotation keywords are written according
to guidelines. The offense was automatically corrected.
This commit is contained in:
Ana María Martínez Gómez 2017-06-26 16:47:07 +02:00
parent 2223523fa0
commit 267f080ac7
2 changed files with 1 additions and 9 deletions

View file

@ -288,14 +288,6 @@ Style/ColonMethodCall:
- 'app/models/commercial.rb'
- 'app/models/contact.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
Style/CommentAnnotation:
Exclude:
- 'app/models/event_user.rb'
# Offense count: 14
# Cop supports --auto-correct.
Style/CommentIndentation:

View file

@ -1,5 +1,5 @@
class EventUser < ActiveRecord::Base
# TODO Do we need these roles?
# TODO: Do we need these roles?
ROLES = [%w[Speaker speaker], %w[Submitter submitter], %w[Moderator moderator]]
belongs_to :event