Files
nostr-gem/.rubocop.yml

64 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-01-12 17:13:45 +07:00
inherit_from: .rubocop_todo.yml
2023-01-06 10:52:30 +07:00
require:
- rubocop-rake
- rubocop-rspec
2023-01-06 10:00:47 +07:00
AllCops:
TargetRubyVersion: 3.2
DisplayCopNames: true
NewCops: enable
# ----------------------- Gemspec -----------------------
Gemspec/DevelopmentDependencies:
Enabled: false
# ----------------------- Style -----------------------
2023-01-06 10:00:47 +07:00
Style/RaiseArgs:
Exclude:
- 'lib/nostr/key.rb'
2023-01-06 10:00:47 +07:00
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
2023-01-06 10:00:47 +07:00
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
# ----------------------- Layout ----------------------
2023-01-06 10:00:47 +07:00
Layout/LineLength:
Max: 120
# ---------------------- Metrics ----------------------
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
- nostr.gemspec
Metrics/ParameterLists:
CountKeywordArgs: false
# ----------------------- RSpec -----------------------
RSpec/ExampleLength:
Enabled: false
RSpec/FilePath:
Exclude:
- spec/nostr/errors/invalid_*
RSpec/SpecFilePathFormat:
Exclude:
- spec/nostr/errors/invalid_*
# ----------------------- Naming -----------------------
Naming/MemoizedInstanceVariableName:
Exclude:
- 'spec/nostr/key.rb'