mberlanda/cheidelacoriera

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
inherit_from: .rubocop_todo.yml

require:
  - rubocop-performance
  - rubocop-rails
  - rubocop-rspec

AllCops:
  NewCops: enable
  TargetRubyVersion: 2.7
  Exclude:
    - '**/helpers/dry_crud/**/*.rb'
    - '**/helpers/actions_helper*.rb'
    - '**/helpers/form_helper*.rb'
    - '**/helpers/format_helper*.rb'
    - '**/helpers/i18n_helper*.rb'
    - '**/helpers/table_helper*.rb'
    - '**/helpers/utility_helper*.rb'
    - app/controllers/dry_crud/*.rb
    - app/controllers/crud_controller.rb
    - bin/**
    - db/schema.rb
    - node_modules/**/*
    - spec/support/crud_*.rb
    - spec/controllers/crud_test_models_controller_spec.rb
    - vendor/**/*
  DisplayCopNames: true

Layout/LineLength:
  Max: 90
  Enabled: true
  AllowHeredoc: true
  AllowURI: true
  Exclude:
    - Gemfile
    - bin/**/*
    - config/**/*
    - db/**/*
    - lib/tasks/dbdata.rake
    - spec/*_helper.rb
    - app/controllers/events_controller.rb
    - app/controllers/reservations_controller.rb
    - app/lib/breadcrumb_builder.rb
    - lib/action_view/helpers/sanitize_helper.rb

Lint/UnusedMethodArgument:
  Exclude:
    - app/inputs/*array_input.rb

Metrics/AbcSize:
  Enabled: true
  Exclude:
    - db/migrate/*.rb
    - app/decorators/*_decorator.rb
    - app/controllers/events_controller.rb
    - app/controllers/reservations_controller.rb
    - app/inputs/array_input.rb
    - app/models/event.rb
    - app/lib/breadcrumb_builder.rb

Metrics/BlockLength:
  Enabled: true
  Exclude:
    - app/views/api/v1/events/list.json.jbuilder
    - lib/tasks/*.rake
    - spec/**/*_spec.rb

Metrics/ClassLength:
  Enabled: true
  Exclude:
    - app/models/reservation.rb
    - app/controllers/reservations_controller.rb

Metrics/MethodLength:
  Max: 15
  Enabled: true
  Exclude:
    - app/schemas/*
    - db/**/*
    - spec/*_helper.rb
    - app/controllers/events_controller.rb
    - app/controllers/reservations_controller.rb
    - app/decorators/*.rb

Metrics/ModuleLength:
  Exclude:
    - app/schemas/reservation_schema.rb

Rails:
  Enabled: true

Rails/ApplicationController:
  Enabled: false

Rails/Output:
  Exclude:
    - config/unicorn.rb

Style/ClassAndModuleChildren:
  Enabled: false

Style/Documentation:
  Enabled: false

Style/ModuleFunction:
  Enabled: false