Skip to content

Commit

Permalink
move cops into rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Jan 2, 2020
1 parent adf4b32 commit d0f244e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ Rails/CreateTableWithTimestamps:
- 'db/migrate/20151210035820_init_schema.rb'
- 'db/migrate/20160211061631_add_chapter_leaderships_again.rb'
- 'db/migrate/20160312224628_create_organization_leaderships.rb'


# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'lib/tasks/**/*' # rake tasks need output
- 'app/jobs/**/*' # heroku scheduler support output
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,6 @@ Rails/InverseOf:
- 'app/models/rsvp.rb'
- 'app/models/user.rb'

# Offense count: 4
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'app/jobs/reminder_sender.rb'
- 'lib/tasks/support/rspec_rerunner.rb'

# Offense count: 57
# Configuration parameters: Blacklist, Whitelist.
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
Expand Down
2 changes: 2 additions & 0 deletions lib/tasks/scheduler.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

# these reminders are sent by the heroku reminder addon

desc 'Send reminders for upcoming events within the reminder window'
task send_reminders: :environment do
puts 'Sending reminder emails...'
Expand Down

0 comments on commit d0f244e

Please sign in to comment.