-
Notifications
You must be signed in to change notification settings - Fork 106
/
.rubocop.yml
172 lines (141 loc) · 3.34 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
require:
- rubocop-rspec
- rubocop-performance
- ./ext/rubocop.rb
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
SuggestExtensions: false
Exclude:
# binstubs, and other utilities
- bin/**/*
- vendor/**/*
- vendor/**/.*
# package testing gems
- package-testing/vendor/**/*
- package-testing/vendor/**/.*
- tmp/**/*
# Layout
Layout/LineLength:
Description: People have wide screens, use them.
Max: 200
# RSpec
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests. A necessary evil in acceptance testing.
Exclude:
- 'spec/acceptance/**/*.rb'
- 'package-testing/spec/package/**/*.rb'
RSpec/NestedGroups:
Description: Nested groups can lead to cleaner tests with less duplication
Max: 10
RSpec/MessageSpies:
EnforcedStyle: receive
Style/WordArray:
EnforcedStyle: brackets
Style/SymbolArray:
EnforcedStyle: brackets
Style/FormatStringToken:
EnforcedStyle: template
# Metrics
Metrics/ParameterLists:
Description: 6 is the current highest count. Lets not go over that.
Max: 6
# PDK
PDK/FileFilePredicate:
Exclude:
- lib/pdk/util/filesystem.rb
- Gemfile
PDK/FileExistPredicate:
Exclude:
- Rakefile
- lib/pdk/util/filesystem.rb
- package-testing/Rakefile
PDK/FileDirectoryPredicate:
Exclude:
- lib/pdk/util/filesystem.rb
PDK/FileUtilsMkdirP:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/*
- rakelib/command_spec.rake
PDK/FileExpandPath:
Exclude:
- lib/pdk/util/filesystem.rb
- package-testing/**/*
- rakelib/*
- spec/spec_helper.rb
- spec/acceptance/**/*.rb
- pdk.gemspec
PDK/DirGlob:
Exclude:
- lib/pdk/util/filesystem.rb
- rakelib/command_spec.rake
PDK/FileFnmatchPredicate:
Exclude:
- lib/pdk/util/filesystem.rb
PDK/FileReadablePredicate:
Exclude:
- lib/pdk/util/filesystem.rb
- Gemfile
PDK/FileUtilsRm:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
PDK/FileRead:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
- Gemfile
- spec/unit/pdk/util/filesystem_spec.rb
PDK/FileZeroPredicate:
Exclude:
- lib/pdk/util/filesystem.rb
PDK/FileStat:
Exclude:
- lib/pdk/util/filesystem.rb
PDK/DirExistPredicate:
Exclude:
- rakelib/*.rake
PDK/DirBrackets:
Exclude:
- pdk.gemspec
- spec/spec_helper_acceptance.rb
- spec/spec_helper.rb
- rakelib/*.rake
- package-testing/spec/spec_helper_package.rb
PDK/FileOpen:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/unit/pdk/util/filesystem_spec.rb
- Gemfile
- spec/acceptance/**/*.rb
- rakelib/*.rake
- package-testing/Rakefile
PDK/FileSymlinkPredicate:
Exclude:
- lib/pdk/util/filesystem.rb
PDK/FileUtilsRMF:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
PDK/FileUtilsRMRF:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
- rakelib/*.rake
- spec/spec_helper_acceptance.rb
PDK/FileUtilsCP:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
PDK/FileUtilsMV:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
PDK/FileUtilsRemoveEntrySecure:
Exclude:
- lib/pdk/util/filesystem.rb
- spec/acceptance/**/*.rb
RSpec/SharedExamples:
Enabled: false