-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy path.rubocop.yml
44 lines (37 loc) · 1.28 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require:
- rubocop-performance
- rubocop-rspec
inherit_gem:
rentacop:
- rentacop.yml
- rspec.yml
AllCops:
TargetRubyVersion: 3.1
SuggestExtensions: false
Exclude:
- dev/**/*
# The `ConfigValidator` class is a DSL, let it be
Metrics/AbcSize: { Exclude: [lib/bashly/config_validator.rb] }
Metrics/CyclomaticComplexity: { Exclude: [lib/bashly/config_validator.rb] }
Metrics/PerceivedComplexity: { Exclude: [lib/bashly/config_validator.rb] }
Metrics/MethodLength: { Exclude: [lib/bashly/config_validator.rb] }
Style/GuardClause: { Exclude: [lib/bashly/config_validator.rb] }
# False positive report of invalid use of a method that starts with `set_`
Naming/AccessorMethodName:
Exclude:
- 'lib/bashly/concerns/indentation_helper.rb'
# FIXME: The `Command` class is too long
Metrics/ClassLength:
Exclude:
- lib/bashly/script/command.rb
- lib/bashly/config_validator.rb
# Allow irregular filenames in some cases
RSpec/SpecFilePathFormat:
Exclude:
- 'spec/bashly/concerns/completions_command_spec.rb'
- 'spec/bashly/concerns/completions_flag_spec.rb'
# Allow longer integration examples as they are more complex by nature
RSpec/ExampleLength:
Exclude:
- 'spec/bashly/integration/**/*'
- 'spec/bashly/libraries/render*'