gitlab-styles 3.4.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.editorconfig +18 -0
- data/.gitignore +3 -0
- data/.gitlab/merge_request_templates/Release.md +1 -1
- data/Gemfile +3 -2
- data/README.md +1 -0
- data/gitlab-styles.gemspec +5 -4
- data/lib/gitlab/styles/rubocop.rb +4 -0
- data/lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb +131 -0
- data/lib/gitlab/styles/rubocop/cop/migration/update_large_table.rb +64 -0
- data/lib/gitlab/styles/rubocop/cop/rspec/base.rb +18 -0
- data/lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_let_block.rb +65 -0
- data/lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_shared_example.rb +65 -0
- data/lib/gitlab/styles/rubocop/cop/rspec/have_link_parameters.rb +10 -5
- data/lib/gitlab/styles/rubocop/cop/rspec/single_line_hook.rb +3 -2
- data/lib/gitlab/styles/rubocop/cop/rspec/verbose_include_metadata.rb +10 -13
- data/lib/gitlab/styles/rubocop/model_helpers.rb +1 -1
- data/lib/gitlab/styles/rubocop/rspec/helpers.rb +17 -0
- data/lib/gitlab/styles/version.rb +1 -1
- data/rubocop-all.yml +2 -1
- data/rubocop-bundler.yml +1 -0
- data/rubocop-code_reuse.yml +24 -0
- data/rubocop-default.yml +2 -0
- data/rubocop-gemspec.yml +1 -0
- data/rubocop-layout.yml +38 -22
- data/rubocop-lint.yml +81 -19
- data/rubocop-metrics.yml +1 -6
- data/rubocop-migrations.yml +22 -0
- data/rubocop-naming.yml +9 -8
- data/rubocop-performance.yml +48 -0
- data/rubocop-rails.yml +79 -0
- data/rubocop-rspec.yml +14 -0
- data/rubocop-security.yml +1 -0
- data/rubocop-style.yml +118 -14
- metadata +21 -12
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-styles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.89.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.89.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-gitlab-security
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,42 +44,42 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.8.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.8'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.44'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.44'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".editorconfig"
|
132
133
|
- ".gitignore"
|
133
134
|
- ".gitlab-ci.yml"
|
134
135
|
- ".gitlab/merge_request_templates/Release.md"
|
@@ -148,26 +149,34 @@ files:
|
|
148
149
|
- lib/gitlab/styles/rubocop.rb
|
149
150
|
- lib/gitlab/styles/rubocop/cop/active_record_dependent.rb
|
150
151
|
- lib/gitlab/styles/rubocop/cop/active_record_serialize.rb
|
152
|
+
- lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb
|
151
153
|
- lib/gitlab/styles/rubocop/cop/custom_error_class.rb
|
152
154
|
- lib/gitlab/styles/rubocop/cop/gem_fetcher.rb
|
153
155
|
- lib/gitlab/styles/rubocop/cop/in_batches.rb
|
154
156
|
- lib/gitlab/styles/rubocop/cop/line_break_after_guard_clauses.rb
|
157
|
+
- lib/gitlab/styles/rubocop/cop/migration/update_large_table.rb
|
155
158
|
- lib/gitlab/styles/rubocop/cop/polymorphic_associations.rb
|
156
159
|
- lib/gitlab/styles/rubocop/cop/redirect_with_status.rb
|
160
|
+
- lib/gitlab/styles/rubocop/cop/rspec/base.rb
|
161
|
+
- lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_let_block.rb
|
162
|
+
- lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_shared_example.rb
|
157
163
|
- lib/gitlab/styles/rubocop/cop/rspec/have_link_parameters.rb
|
158
164
|
- lib/gitlab/styles/rubocop/cop/rspec/single_line_hook.rb
|
159
165
|
- lib/gitlab/styles/rubocop/cop/rspec/verbose_include_metadata.rb
|
160
166
|
- lib/gitlab/styles/rubocop/cop/without_reactive_cache.rb
|
161
167
|
- lib/gitlab/styles/rubocop/migration_helpers.rb
|
162
168
|
- lib/gitlab/styles/rubocop/model_helpers.rb
|
169
|
+
- lib/gitlab/styles/rubocop/rspec/helpers.rb
|
163
170
|
- lib/gitlab/styles/version.rb
|
164
171
|
- rubocop-all.yml
|
165
172
|
- rubocop-bundler.yml
|
173
|
+
- rubocop-code_reuse.yml
|
166
174
|
- rubocop-default.yml
|
167
175
|
- rubocop-gemspec.yml
|
168
176
|
- rubocop-layout.yml
|
169
177
|
- rubocop-lint.yml
|
170
178
|
- rubocop-metrics.yml
|
179
|
+
- rubocop-migrations.yml
|
171
180
|
- rubocop-naming.yml
|
172
181
|
- rubocop-performance.yml
|
173
182
|
- rubocop-rails.yml
|
@@ -186,14 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
195
|
requirements:
|
187
196
|
- - ">="
|
188
197
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
198
|
+
version: '2.6'
|
190
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
200
|
requirements:
|
192
201
|
- - ">="
|
193
202
|
- !ruby/object:Gem::Version
|
194
203
|
version: '0'
|
195
204
|
requirements: []
|
196
|
-
rubygems_version: 3.1.
|
205
|
+
rubygems_version: 3.1.4
|
197
206
|
signing_key:
|
198
207
|
specification_version: 4
|
199
208
|
summary: GitLab style guides and shared style configs.
|