Sha256: daa23ea4d097666271a83e6a4d2f1d69055884313ec464cccc0d4ea7ec887bd5

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

require: rubocop-rspec

AllCops:
  Exclude:
    - '.internal_test_app/**/*'
    - 'bin/**/*'
    - 'db/**/*'
    - 'lib/generators/arclight/templates/**/*'
    - 'vendor/**/*'
  TargetRubyVersion: 2.4
  DisplayCopNames: true

Rails:
  Enabled: true

Metrics/LineLength:
  Max: 120
  Exclude:
    - 'Gemfile'
    - 'lib/arclight/custom_document.rb'  # XPaths get long
    - 'lib/arclight/custom_component.rb' # XPaths get long

Metrics/ModuleLength:
  Max: 120

Metrics/ClassLength:
  Max: 120

Metrics/BlockLength:
  Exclude:
    - !ruby/regexp /\.rake$/
    - 'arclight.gemspec'
    - 'spec/**/*'
    - 'lib/arclight/custom_document.rb'

Metrics/MethodLength:
  Exclude:
    - 'lib/arclight/custom_document.rb' # arclight_field_definitions too long

Performance/RegexpMatch:
  Enabled: false

Rails/OutputSafety:
  Exclude:
    - 'app/controllers/concerns/arclight/field_config_helpers.rb' # html_safe needs to be called to mimic BL JOIN behavior

RSpec/ExampleLength:
  Enabled: false

RSpec/FilePath:
  Exclude:
    - 'spec/lib/arclight/viewers/oembed_spec.rb' # Default file path is o_embed, and that looks weird

RSpec/MultipleExpectations:
  Enabled: false

RSpec/NestedGroups:
  Max: 4

Style/Documentation:
  Exclude:
    - 'spec/**/*'
    - 'lib/arclight.rb'

Bundler/DuplicatedGem:
  Enabled: false

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arclight-0.1.4 .rubocop.yml
arclight-0.1.3 .rubocop.yml
arclight-0.1.2 .rubocop.yml
arclight-0.1.1 .rubocop.yml
arclight-0.1.0 .rubocop.yml