gitlab-styles 4.0.0 → 5.1.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/.gitlab-ci.yml +4 -15
- data/.gitlab/merge_request_templates/Release.md +4 -4
- data/.rubocop.yml +3 -1
- data/Gemfile +3 -2
- data/README.md +1 -0
- data/gitlab-styles.gemspec +5 -4
- data/lib/gitlab/styles/rubocop.rb +5 -0
- data/lib/gitlab/styles/rubocop/cop/active_record_dependent.rb +1 -1
- data/lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb +131 -0
- data/lib/gitlab/styles/rubocop/cop/custom_error_class.rb +6 -3
- data/lib/gitlab/styles/rubocop/cop/gem_fetcher.rb +1 -1
- data/lib/gitlab/styles/rubocop/cop/line_break_after_guard_clauses.rb +1 -1
- data/lib/gitlab/styles/rubocop/cop/line_break_around_conditional_block.rb +132 -0
- data/lib/gitlab/styles/rubocop/cop/migration/update_large_table.rb +64 -0
- data/lib/gitlab/styles/rubocop/cop/polymorphic_associations.rb +1 -1
- 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 +1 -0
- 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 +6 -0
- data/rubocop-lint.yml +63 -5
- data/rubocop-metrics.yml +1 -0
- data/rubocop-migrations.yml +22 -0
- data/rubocop-naming.yml +1 -0
- 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 +90 -1
- metadata +26 -17
- data/.rubocop_todo.yml +0 -7
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-10 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
|
@@ -122,19 +122,19 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.0'
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- gitlab_rubygems@gitlab.com
|
128
128
|
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"
|
135
136
|
- ".rspec"
|
136
137
|
- ".rubocop.yml"
|
137
|
-
- ".rubocop_todo.yml"
|
138
138
|
- CODE_OF_CONDUCT.md
|
139
139
|
- CONTRIBUTING.md
|
140
140
|
- Gemfile
|
@@ -148,26 +148,35 @@ files:
|
|
148
148
|
- lib/gitlab/styles/rubocop.rb
|
149
149
|
- lib/gitlab/styles/rubocop/cop/active_record_dependent.rb
|
150
150
|
- lib/gitlab/styles/rubocop/cop/active_record_serialize.rb
|
151
|
+
- lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb
|
151
152
|
- lib/gitlab/styles/rubocop/cop/custom_error_class.rb
|
152
153
|
- lib/gitlab/styles/rubocop/cop/gem_fetcher.rb
|
153
154
|
- lib/gitlab/styles/rubocop/cop/in_batches.rb
|
154
155
|
- lib/gitlab/styles/rubocop/cop/line_break_after_guard_clauses.rb
|
156
|
+
- lib/gitlab/styles/rubocop/cop/line_break_around_conditional_block.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
|
@@ -178,7 +187,7 @@ homepage: https://gitlab.com/gitlab-org/gitlab-styles
|
|
178
187
|
licenses:
|
179
188
|
- MIT
|
180
189
|
metadata: {}
|
181
|
-
post_install_message:
|
190
|
+
post_install_message:
|
182
191
|
rdoc_options: []
|
183
192
|
require_paths:
|
184
193
|
- lib
|
@@ -186,15 +195,15 @@ 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.
|
197
|
-
signing_key:
|
205
|
+
rubygems_version: 3.1.4
|
206
|
+
signing_key:
|
198
207
|
specification_version: 4
|
199
208
|
summary: GitLab style guides and shared style configs.
|
200
209
|
test_files: []
|
data/.rubocop_todo.yml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2017-11-03 15:49:59 +0100 using RuboCop version 0.51.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|