nostr-gem/.rubocop.yml
2023-01-12 17:21:17 +07:00

38 lines
681 B
YAML

inherit_from: .rubocop_todo.yml
require:
- rubocop-rake
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.2
DisplayCopNames: true
NewCops: enable
# ----------------------- Style -----------------------
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
# ----------------------- Layout ----------------------
Layout/LineLength:
Max: 120
# ---------------------- Metrics ----------------------
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- nostr.gemspec
# ----------------------- RSpec -----------------------
RSpec/ExampleLength:
Enabled: false