Sha256: ed6c028c0837c375f8447d0885bd1afd8b25c71b4251fc9ed469bf268cbc9a73

Contents?: true

Size: 2 KB

Versions: 3

Compression:

Stored size: 2 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
  Exclude:
    - 'lib/marty/delayed_job/queue_adapter.rb'

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/**/*'

Style/NumericPredicate:
  Enabled: false

Rails/ApplicationRecord:
  Enabled: false

Rails/ApplicationJob:
  Enabled: false

Rails/ApplicationController:
  Enabled: false

Rails/IndexWith:
  Enabled: false

Lint/RaiseException:
  Enabled: false

Lint/StructNewOverride:
  Enabled: false

Style/HashEachMethods:
  Enabled: false

Style/HashTransformKeys:
  Enabled: false

Style/HashTransformValues:
  Enabled: false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marty-14.3.0 .rubocop.yml
marty-14.0.0 .rubocop.yml
marty-13.0.2 .rubocop.yml