From 267f080ac77e6df04092676df1e148baffffa6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Mon, 26 Jun 2017 16:47:07 +0200 Subject: [PATCH] Enable Style/CommentAnnotation Rubocop cop This cop checks that comment annotation keywords are written according to guidelines. The offense was automatically corrected. --- .rubocop_todo.yml | 8 -------- app/models/event_user.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ef9bcd98..56ff7885 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/app/models/event_user.rb b/app/models/event_user.rb index 58adadad..70d9ca91 100644 --- a/app/models/event_user.rb +++ b/app/models/event_user.rb @@ -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