jbox-web/mailgun-rails

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
---
require:
  - rubocop-performance
  - rubocop-rails
  - rubocop-rake
  - rubocop-rspec

AllCops:
  NewCops: enable
  TargetRubyVersion: 3.0
  Exclude:
    - bin/*
    - lib/mailgun-rails.rb

Gemspec/RequireMFA:
  Enabled: false

#########
# STYLE #
#########

Style/Documentation:
  Enabled: false

Style/TrailingCommaInArrayLiteral:
  EnforcedStyleForMultiline: consistent_comma

Style/TrailingCommaInHashLiteral:
  EnforcedStyleForMultiline: consistent_comma

Style/BlockDelimiters:
  AllowedPatterns: ['expect']

##########
# LAYOUT #
##########

Layout/LineLength:
  Max: 125

Layout/EmptyLines:
  Enabled: false

Layout/EmptyLineBetweenDefs:
  Enabled: false

Layout/EmptyLinesAroundClassBody:
  Enabled: false

Layout/EmptyLinesAroundBlockBody:
  Enabled: false

Layout/EmptyLinesAroundModuleBody:
  Enabled: false

Layout/IndentationConsistency:
  EnforcedStyle: indented_internal_methods

Layout/FirstHashElementIndentation:
  EnforcedStyle: consistent

#########
# RSPEC #
#########

RSpec/NotToNot:
  EnforcedStyle: to_not

RSpec/NestedGroups:
  Enabled: false

RSpec/MultipleExpectations:
  Max: 3

RSpec/AnyInstance:
  Exclude:
    - spec/mailgun_rails/web_hook_processor_spec.rb