-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
77 lines (63 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# You can find more information about RuboCop pending cops policy
# https://docs.rubocop.org/rubocop/versioning.html#pending-cops
#
# These are the default options. The .rubocop.yml inherit and
# override all the default options.
# https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec
- rubocop-rake
AllCops:
TargetRubyVersion: 2.7.3
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'br_documents.gemspec'
# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RubyVersionGlobalsUsage:
Exclude:
- 'br_documents.gemspec'
# Offense count: 1
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 20
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'br_documents.gemspec'
Style/Documentation:
Enabled: false
RSpec/NamedSubject:
Enabled: false # default: true
RSpec/MultipleExpectations:
Enabled: false # default: true
RSpec/NestedGroups:
Enabled: false # default: true
RSpec/ExampleLength:
Enabled: false # default: true
Style/RegexpLiteral:
Enabled: false # default: true
Style/FrozenStringLiteralComment:
EnforcedStyle: never # default: always
# Offense count: 39
# Cop supports --auto-correct.
Style/RedundantRegexpEscape:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Exclude:
- 'br_documents.gemspec'
Style/WordArray:
EnforcedStyle: brackets