Sha256: b9497274fd93df6252594c29d8b9936665184950382b2c6a707ea5d9f29ba9fe

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

inherit_from: .rubocop_todo.yml
require:
  - rubocop-performance
  - rubocop-rails

AllCops:
  TargetRubyVersion: 2.4.2
  Exclude:
    - 'db/**/*'
    - 'spec/dummy/**/*'
    - 'bin/{rails,rake}'
    - 'vendor/**/*'
    - 'lib/tasks/marty_tasks.rake'
    - !ruby/regexp /old_and_unused\.rb$/

Layout/DotPosition:
  EnforcedStyle: 'trailing'

Style/StringLiterals:
  Enabled: true
  EnforcedStyle: single_quotes

Metrics/BlockLength:
  Max: 400
  Exclude:
    - 'spec/**/*'

Style/CaseEquality:
  Exclude:
    - 'app/components/marty/report_form.rb'
    - 'app/models/marty/data_grid.rb'
    - 'app/helpers/marty/enum_helper.rb'
    - 'lib/marty/data_change.rb'
    - 'lib/marty/data_conversion.rb'
    - 'lib/marty/mcfly_model.rb'
    - 'lib/marty/monkey.rb'
    - 'other/marty/api/base.rb'
    - 'spec/lib/mcfly_model_spec.rb'

Lint/UnusedMethodArgument:
  AllowUnusedKeywordArguments: true
  IgnoreEmptyMethods: true

Style/SymbolArray:
  EnforcedStyle: brackets

# Marshal serialisation is used in Redis caching
Security/MarshalLoad:
  Exclude:
    - 'lib/marty/cache_adapters/redis.rb'

Rails/TimeZone:
  EnforcedStyle: strict

Rails/OutputSafety:
  Exclude:
    - 'app/components/marty/main_auth_app.rb'

Rails/HelperInstanceVariable:
  Exclude:
    - 'app/helpers/marty/script_set.rb' # It's a class, not a helper

Rails/SkipsModelValidations:
  Exclude:
    - 'app/models/marty/promise.rb'

Rails/DynamicFindBy:
  Exclude:
    - 'app/models/marty/data_grid.rb' # Enum
    - 'app/models/marty/enum.rb' # Enum
    - 'spec/features/**/*'
    - 'spec/support/**/*'

Rails/ApplicationRecord:
  Enabled: false

Rails/ApplicationJob:
  Enabled: false

Rails/ApplicationController:
  Enabled: false

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
marty-9.5.1 .rubocop.yml
marty-9.5.0 .rubocop.yml
marty-9.3.3 .rubocop.yml
marty-9.3.2 .rubocop.yml