Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed Aug 24, 2023
1 parent 4b71163 commit 86f4865
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
# using RuboCop version 1.44.1.
# using RuboCop version 1.55.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -20,14 +20,14 @@ Lint/SuppressedException:
# Offense count: 2
# Configuration parameters: Database, Include.
# SupportedDatabases: mysql, postgresql
# Include: db/migrate/*.rb
# Include: db/**/*.rb
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20220617020303_add_summative_assessment_fields_to_user_answers.rb'

# Offense count: 3
# Configuration parameters: Include.
# Include: db/migrate/*.rb
# Include: db/**/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20220419121105_create_ahoy_visits_and_events.rb'
Expand All @@ -53,8 +53,16 @@ Rails/SaveBang:
Exclude:
- 'app/controllers/registrations_controller.rb'
- 'app/controllers/training/responses_controller.rb'
- 'app/forms/users/setting_type_form.rb'
- 'app/forms/registration/setting_type_form.rb'
- 'config/sitemap.rb'
- 'lib/content_seed.rb'
- 'lib/seed_images.rb'
- 'spec/forms/users/setting_type_form_spec.rb'
- 'spec/forms/registration/setting_type_form_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/Validation:
Exclude:
- 'app/models/training/module.rb'
1 change: 0 additions & 1 deletion app/models/training/module.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Training
class Module < ContentfulModel::Base

validates_presence_of :name

extend ::Caching
Expand Down

0 comments on commit 86f4865

Please sign in to comment.