armitage-rubocop 0.83.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rubocop.yml +6 -0
- data/.yamllint +50 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +86 -0
- data/Rakefile +138 -0
- data/armitage-rubocop.gemspec +34 -0
- data/bin/setup +8 -0
- data/lib/common/bundler.yml +12 -0
- data/lib/common/gemspec.yml +12 -0
- data/lib/common/layout.yml +372 -0
- data/lib/common/lint.yml +268 -0
- data/lib/common/metrics.yml +49 -0
- data/lib/common/migration.yml +2 -0
- data/lib/common/naming.yml +72 -0
- data/lib/common/performance.yml +83 -0
- data/lib/common/rails.yml +202 -0
- data/lib/common/rake.yml +14 -0
- data/lib/common/security.yml +15 -0
- data/lib/common/style.yml +587 -0
- data/lib/rspec/capybara.yml +8 -0
- data/lib/rspec/factory_bot.yml +9 -0
- data/lib/rspec/rails.yml +2 -0
- data/lib/rspec/rspec.yml +245 -0
- data/lib/rubocop.general.yml +21 -0
- data/lib/rubocop.rails.yml +13 -0
- data/lib/rubocop.rake.yml +10 -0
- data/lib/rubocop.rspec.yml +21 -0
- metadata +186 -0
data/lib/rspec/rails.yml
ADDED
data/lib/rspec/rspec.yml
ADDED
@@ -0,0 +1,245 @@
|
|
1
|
+
RSpec/AlignLeftLetBrace:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
RSpec/AlignRightLetBrace:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
RSpec/AnyInstance:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
RSpec/AroundBlock:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
RSpec/Be:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
RSpec/BeEql:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
RSpec/BeforeAfterAll:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
RSpec/ContextMethod:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
RSpec/ContextWording:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
RSpec/DescribeClass:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
RSpec/DescribeMethod:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
RSpec/DescribeSymbol:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
RSpec/DescribedClass:
|
38
|
+
Enabled: true
|
39
|
+
SkipBlocks: false
|
40
|
+
EnforcedStyle: described_class
|
41
|
+
|
42
|
+
RSpec/DescribedClassModuleWrapping:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
RSpec/Dialect:
|
46
|
+
Enabled: true
|
47
|
+
PreferredMethods: {}
|
48
|
+
|
49
|
+
RSpec/EmptyExampleGroup:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
RSpec/EmptyHook:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
RSpec/EmptyLineAfterExampleGroup:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
RSpec/EmptyLineAfterExample:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
RSpec/EmptyLineAfterFinalLet:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
RSpec/EmptyLineAfterHook:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
RSpec/EmptyLineAfterSubject:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
RSpec/ExampleLength:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
RSpec/ExampleWithoutDescription:
|
74
|
+
Enabled: true
|
75
|
+
EnforcedStyle: always_allow
|
76
|
+
|
77
|
+
RSpec/ExampleWording:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
RSpec/ExpectActual:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
RSpec/ExpectChange:
|
84
|
+
Enabled: true
|
85
|
+
EnforcedStyle: block
|
86
|
+
|
87
|
+
RSpec/ExpectInHook:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
RSpec/ExpectOutput:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
RSpec/FilePath:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
RSpec/Focus:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
RSpec/HookArgument:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
RSpec/HooksBeforeExamples:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
RSpec/ImplicitBlockExpectation:
|
106
|
+
Enabled: false
|
107
|
+
|
108
|
+
RSpec/ImplicitExpect:
|
109
|
+
Enabled: true
|
110
|
+
EnforcedStyle: is_expected
|
111
|
+
|
112
|
+
RSpec/ImplicitSubject:
|
113
|
+
Enabled: true
|
114
|
+
EnforcedStyle: single_line_only
|
115
|
+
|
116
|
+
RSpec/InstanceSpy:
|
117
|
+
Enabled: true
|
118
|
+
|
119
|
+
RSpec/InstanceVariable:
|
120
|
+
Enabled: true
|
121
|
+
AssignmentOnly: false
|
122
|
+
|
123
|
+
RSpec/InvalidPredicateMatcher:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
RSpec/ItBehavesLike:
|
127
|
+
Enabled: true
|
128
|
+
EnforcedStyle: it_behaves_like
|
129
|
+
|
130
|
+
RSpec/IteratedExpectation:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
RSpec/LeadingSubject:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
RSpec/LeakyConstantDeclaration:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
RSpec/LetBeforeExamples:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
RSpec/LetSetup:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
RSpec/MessageChain:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
RSpec/MessageExpectation:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
RSpec/MessageSpies:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
RSpec/MissingExampleGroupArgument:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
RSpec/MultipleDescribes:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
RSpec/MultipleExpectations:
|
161
|
+
Enabled: false
|
162
|
+
|
163
|
+
RSpec/MultipleSubjects:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
RSpec/NamedSubject:
|
167
|
+
Enabled: true
|
168
|
+
IgnoreSharedExamples: true
|
169
|
+
|
170
|
+
RSpec/NestedGroups:
|
171
|
+
Enabled: false
|
172
|
+
|
173
|
+
RSpec/NotToNot:
|
174
|
+
Enabled: true
|
175
|
+
EnforcedStyle: not_to
|
176
|
+
|
177
|
+
RSpec/OverwritingSetup:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
RSpec/Pending:
|
181
|
+
Enabled: false
|
182
|
+
|
183
|
+
RSpec/PredicateMatcher:
|
184
|
+
Enabled: true
|
185
|
+
Strict: true
|
186
|
+
EnforcedStyle: explicit
|
187
|
+
AllowedExplicitMatchers:
|
188
|
+
- be_a
|
189
|
+
- be_empty
|
190
|
+
- have_http_status
|
191
|
+
- have_been_made
|
192
|
+
|
193
|
+
RSpec/ReceiveCounts:
|
194
|
+
Enabled: false
|
195
|
+
|
196
|
+
RSpec/ReceiveNever:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
RSpec/RepeatedDescription:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
RSpec/RepeatedExample:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
RSpec/RepeatedExampleGroupBody:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
RSpec/RepeatedExampleGroupDescription:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
RSpec/ReturnFromStub:
|
212
|
+
Enabled: true
|
213
|
+
EnforcedStyle: and_return
|
214
|
+
|
215
|
+
RSpec/ScatteredLet:
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
RSpec/ScatteredSetup:
|
219
|
+
Enabled: false
|
220
|
+
|
221
|
+
RSpec/SharedContext:
|
222
|
+
Enabled: true
|
223
|
+
|
224
|
+
RSpec/SharedExamples:
|
225
|
+
Enabled: true
|
226
|
+
|
227
|
+
RSpec/SingleArgumentMessageChain:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
RSpec/SubjectStub:
|
231
|
+
Enabled: true
|
232
|
+
|
233
|
+
RSpec/UnspecifiedException:
|
234
|
+
Enabled: true
|
235
|
+
|
236
|
+
RSpec/VerifiedDoubles:
|
237
|
+
Enabled: false
|
238
|
+
IgnoreNameless: true
|
239
|
+
IgnoreSymbolicNames: false
|
240
|
+
|
241
|
+
RSpec/VoidExpect:
|
242
|
+
Enabled: true
|
243
|
+
|
244
|
+
RSpec/Yield:
|
245
|
+
Enabled: true
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require: rubocop-performance
|
2
|
+
|
3
|
+
inherit_from:
|
4
|
+
- ./common/bundler.yml
|
5
|
+
- ./common/gemspec.yml
|
6
|
+
- ./common/layout.yml
|
7
|
+
- ./common/lint.yml
|
8
|
+
- ./common/metrics.yml
|
9
|
+
- ./common/naming.yml
|
10
|
+
- ./common/performance.yml
|
11
|
+
- ./common/security.yml
|
12
|
+
- ./common/style.yml
|
13
|
+
- ./common/migration.yml
|
14
|
+
|
15
|
+
AllCops:
|
16
|
+
DefaultFormatter: progress
|
17
|
+
DisplayCopNames: true
|
18
|
+
DisplayStyleGuide: false
|
19
|
+
ExtraDetails: true
|
20
|
+
UseCache: false
|
21
|
+
TargetRubyVersion: ~
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
inherit_from:
|
4
|
+
- ./rspec/capybara.yml
|
5
|
+
- ./rspec/factory_bot.yml
|
6
|
+
- ./rspec/rails.yml
|
7
|
+
- ./rspec/rspec.yml
|
8
|
+
|
9
|
+
AllCops:
|
10
|
+
RSpec:
|
11
|
+
Patterns:
|
12
|
+
- _spec.rb
|
13
|
+
- "(?:^|/)spec/"
|
14
|
+
RSpec/FactoryBot:
|
15
|
+
Patterns:
|
16
|
+
- spec/factories.rb
|
17
|
+
- spec/factories/**/*.rb
|
18
|
+
- spec/support/factories.rb
|
19
|
+
- spec/support/factories/**/*.rb
|
20
|
+
- features/support/factires.rb
|
21
|
+
- features/support/factories/**/*.rb
|
metadata
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: armitage-rubocop
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.83.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rustam Ibragimov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.83.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.83.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.5.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.5.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.39.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.39.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.5.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.5.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: 'A set of rubocop settings used in my own projects.Support for: vanilla
|
126
|
+
ruby, rspec, rails.'
|
127
|
+
email:
|
128
|
+
- iamdaiver@icloud.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- ".yamllint"
|
136
|
+
- CODE_OF_CONDUCT.md
|
137
|
+
- Gemfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- armitage-rubocop.gemspec
|
142
|
+
- bin/setup
|
143
|
+
- lib/common/bundler.yml
|
144
|
+
- lib/common/gemspec.yml
|
145
|
+
- lib/common/layout.yml
|
146
|
+
- lib/common/lint.yml
|
147
|
+
- lib/common/metrics.yml
|
148
|
+
- lib/common/migration.yml
|
149
|
+
- lib/common/naming.yml
|
150
|
+
- lib/common/performance.yml
|
151
|
+
- lib/common/rails.yml
|
152
|
+
- lib/common/rake.yml
|
153
|
+
- lib/common/security.yml
|
154
|
+
- lib/common/style.yml
|
155
|
+
- lib/rspec/capybara.yml
|
156
|
+
- lib/rspec/factory_bot.yml
|
157
|
+
- lib/rspec/rails.yml
|
158
|
+
- lib/rspec/rspec.yml
|
159
|
+
- lib/rubocop.general.yml
|
160
|
+
- lib/rubocop.rails.yml
|
161
|
+
- lib/rubocop.rake.yml
|
162
|
+
- lib/rubocop.rspec.yml
|
163
|
+
homepage: https://github.com/0exp/armitage
|
164
|
+
licenses:
|
165
|
+
- MIT
|
166
|
+
metadata: {}
|
167
|
+
post_install_message:
|
168
|
+
rdoc_options: []
|
169
|
+
require_paths:
|
170
|
+
- lib
|
171
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
requirements: []
|
182
|
+
rubygems_version: 3.1.2
|
183
|
+
signing_key:
|
184
|
+
specification_version: 4
|
185
|
+
summary: A set of rubocop settings
|
186
|
+
test_files: []
|