Sha256: 4f760f26ddfe3fa2f792ec93490c70c196692a3675e763d9e857dc54b896fecb

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

# This is the configuration used to check the rubocop source code.
# Check out: https://github.com/bbatsov/rubocop

AllCops:
  NewCops: enable
  DisplayCopNames: true
  TargetRubyVersion: 2.5

  Include:
    - '**/Rakefile'
    - '**/config.ru'
    - 'Gemfile'
    - '**/*.rb'
    - '**/*.rake'

  Exclude:
  <% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
    - <%= path.sub(/^!! /, '') %>
  <% end %>
    - '**/*.js'
    - '**/log/**/*'
    - '**/node_modules/**/*'
    - '**/public/**/*'
    - '**/tmp/**/*'
    - '.git/**/*'
    - 'bin/**/*'
    - 'coverage/**/*'
    - 'db/**/*'
    - 'db/schema.rb'
    - 'db/seeds.rb'
    - 'gen-examples/examples/**/*'
    - 'node_modules/**/*'
    - 'spec/dummy/bin/*'
    - 'spec/fixtures/**/*'
    - 'spec/react_on_rails/dummy-for-generators/**/*'
    - 'tmp/**/*'
    - 'vendor/**/*'

Naming/FileName:
  Exclude:
    - 'Gemfile'
    - 'spec/dummy/Gemfile'

Layout/LineLength:
  Max: 120

Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/Documentation:
  Enabled: false

Style/HashEachMethods:
  Enabled: true

Style/HashTransformKeys:
  Enabled: true

Style/HashTransformValues:
  Enabled: true

Lint/AssignmentInCondition:
  Exclude:
    - 'spec/dummy/bin/spring'

Lint/SuppressedException:
  Exclude:
    - 'spec/dummy/bin/rails'
    - 'spec/dummy/bin/rake'

Metrics/AbcSize:
  Max: 28

Metrics/CyclomaticComplexity:
  Max: 7

Metrics/PerceivedComplexity:
  Max: 10

Metrics/ClassLength:
  Max: 150

Metrics/ParameterLists:
  Max: 5
  CountKeywordArgs: false

Metrics/MethodLength:
  Max: 41

Metrics/ModuleLength:
  Max: 180

Naming/RescuedExceptionsVariableName:
  Enabled: false

Style/GlobalVars:
  Exclude:
    - 'spec/dummy/config/environments/development.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
react_on_rails-12.0.4 .rubocop.yml