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:25:59 +07:00
|
|
|
|
2023-01-06 10:00:47 +07:00
|
|
|
AllCops:
|
2023-01-06 10:18:27 +07:00
|
|
|
TargetRubyVersion: 3.2
|
2023-01-06 10:25:59 +07:00
|
|
|
DisplayCopNames: true
|
|
|
|
|
NewCops: enable
|
|
|
|
|
|
2023-11-20 10:32:27 +07:00
|
|
|
# ----------------------- Gemspec -----------------------
|
|
|
|
|
|
|
|
|
|
Gemspec/DevelopmentDependencies:
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
2023-01-06 10:25:59 +07:00
|
|
|
# ----------------------- Style -----------------------
|
2023-01-06 10:00:47 +07:00
|
|
|
|
2023-11-20 09:59:27 +07:00
|
|
|
Style/RaiseArgs:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'lib/nostr/key.rb'
|
|
|
|
|
|
2023-01-06 10:00:47 +07:00
|
|
|
Style/StringLiterals:
|
|
|
|
|
Enabled: true
|
2023-01-06 10:25:59 +07:00
|
|
|
EnforcedStyle: single_quotes
|
2023-01-06 10:00:47 +07:00
|
|
|
|
|
|
|
|
Style/StringLiteralsInInterpolation:
|
|
|
|
|
Enabled: true
|
|
|
|
|
EnforcedStyle: double_quotes
|
|
|
|
|
|
2023-01-06 10:25:59 +07:00
|
|
|
# ----------------------- Layout ----------------------
|
|
|
|
|
|
2023-01-06 10:00:47 +07:00
|
|
|
Layout/LineLength:
|
|
|
|
|
Max: 120
|
2023-01-06 10:25:59 +07:00
|
|
|
|
|
|
|
|
# ---------------------- Metrics ----------------------
|
|
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
|
Exclude:
|
|
|
|
|
- '**/*_spec.rb'
|
|
|
|
|
- nostr.gemspec
|
|
|
|
|
|
2023-02-25 12:40:19 +07:00
|
|
|
Metrics/ParameterLists:
|
|
|
|
|
CountKeywordArgs: false
|
|
|
|
|
|
2023-01-06 10:25:59 +07:00
|
|
|
# ----------------------- RSpec -----------------------
|
|
|
|
|
|
|
|
|
|
RSpec/ExampleLength:
|
|
|
|
|
Enabled: false
|
2023-11-20 09:59:27 +07:00
|
|
|
|
|
|
|
|
RSpec/FilePath:
|
|
|
|
|
Exclude:
|
|
|
|
|
- spec/nostr/errors/invalid_*
|
|
|
|
|
|
2023-11-20 10:32:27 +07:00
|
|
|
RSpec/SpecFilePathFormat:
|
|
|
|
|
Exclude:
|
|
|
|
|
- spec/nostr/errors/invalid_*
|
|
|
|
|
|
2023-11-20 09:59:27 +07:00
|
|
|
# ----------------------- Naming -----------------------
|
|
|
|
|
|
|
|
|
|
Naming/MemoizedInstanceVariableName:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/nostr/key.rb'
|