varvet/pundit

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
AllCops:
  TargetRubyVersion: 3.1
  Exclude:
    - "lib/generators/**/templates/**/*"
    <% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
    - <%= path.sub(/^!! /, '').sub(/\/$/, '/**/*') %>
    <% end %>
  SuggestExtensions: false
  NewCops: disable

Metrics/BlockLength:
  Exclude:
    - "**/*_spec.rb"

Metrics/MethodLength:
  Max: 40

Metrics/ModuleLength:
  Max: 200
  Exclude:
    - "**/*_spec.rb"

Layout/LineLength:
  Max: 120

Gemspec/RequiredRubyVersion:
 Enabled: false

Layout/ParameterAlignment:
  EnforcedStyle: with_fixed_indentation

Layout/CaseIndentation:
  EnforcedStyle: case
  SupportedStyles:
    - case
    - end
  IndentOneStep: true

Layout/EndAlignment:
  EnforcedStyleAlignWith: variable

Style/PercentLiteralDelimiters:
  PreferredDelimiters:
    '%w': "[]"
    '%W': "[]"

Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
  EnforcedStyle: double_quotes

Style/StructInheritance:
  Enabled: false

Style/DoubleNegation:
  Enabled: false

Style/Documentation:
  Enabled: false # TODO: Enable again once we have more docs

Style/HashSyntax:
  EnforcedShorthandSyntax: never