diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 485081b68..63885102f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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 @@ -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' @@ -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' diff --git a/app/models/training/module.rb b/app/models/training/module.rb index 3e45afa01..ffc37dccc 100644 --- a/app/models/training/module.rb +++ b/app/models/training/module.rb @@ -1,6 +1,5 @@ module Training class Module < ContentfulModel::Base - validates_presence_of :name extend ::Caching