nostr-gem/.rubocop.yml
Wilson Silva 97037e6e30
Merge EventFragment into Event
Treating Event as a Value Object in the strictest sense requires additional abstractions and internal complexity that the gem could do without, at least for now.
2023-02-25 17:37:57 +07:00

41 lines
732 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
Metrics/ParameterLists:
CountKeywordArgs: false
# ----------------------- RSpec -----------------------
RSpec/ExampleLength:
Enabled: false