gitlab-styles 3.2.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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +18 -0
  3. data/.gitignore +3 -1
  4. data/.gitlab-ci.yml +25 -4
  5. data/.gitlab/merge_request_templates/Release.md +35 -0
  6. data/.rubocop.yml +3 -1
  7. data/Gemfile +5 -2
  8. data/README.md +5 -0
  9. data/Rakefile +2 -0
  10. data/gitlab-styles.gemspec +8 -5
  11. data/lib/gitlab/styles.rb +2 -0
  12. data/lib/gitlab/styles/rubocop.rb +7 -0
  13. data/lib/gitlab/styles/rubocop/cop/active_record_dependent.rb +4 -2
  14. data/lib/gitlab/styles/rubocop/cop/active_record_serialize.rb +3 -1
  15. data/lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb +131 -0
  16. data/lib/gitlab/styles/rubocop/cop/custom_error_class.rb +9 -4
  17. data/lib/gitlab/styles/rubocop/cop/gem_fetcher.rb +4 -2
  18. data/lib/gitlab/styles/rubocop/cop/in_batches.rb +3 -1
  19. data/lib/gitlab/styles/rubocop/cop/line_break_after_guard_clauses.rb +4 -2
  20. data/lib/gitlab/styles/rubocop/cop/line_break_around_conditional_block.rb +132 -0
  21. data/lib/gitlab/styles/rubocop/cop/migration/update_large_table.rb +64 -0
  22. data/lib/gitlab/styles/rubocop/cop/polymorphic_associations.rb +4 -2
  23. data/lib/gitlab/styles/rubocop/cop/redirect_with_status.rb +3 -1
  24. data/lib/gitlab/styles/rubocop/cop/rspec/base.rb +18 -0
  25. data/lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_let_block.rb +65 -0
  26. data/lib/gitlab/styles/rubocop/cop/rspec/empty_line_after_shared_example.rb +65 -0
  27. data/lib/gitlab/styles/rubocop/cop/rspec/have_link_parameters.rb +13 -6
  28. data/lib/gitlab/styles/rubocop/cop/rspec/single_line_hook.rb +6 -3
  29. data/lib/gitlab/styles/rubocop/cop/rspec/verbose_include_metadata.rb +13 -14
  30. data/lib/gitlab/styles/rubocop/cop/without_reactive_cache.rb +3 -1
  31. data/lib/gitlab/styles/rubocop/migration_helpers.rb +2 -0
  32. data/lib/gitlab/styles/rubocop/model_helpers.rb +3 -1
  33. data/lib/gitlab/styles/rubocop/rspec/helpers.rb +17 -0
  34. data/lib/gitlab/styles/version.rb +3 -1
  35. data/rubocop-all.yml +2 -1
  36. data/rubocop-bundler.yml +1 -0
  37. data/rubocop-code_reuse.yml +24 -0
  38. data/rubocop-default.yml +2 -0
  39. data/rubocop-gemspec.yml +1 -0
  40. data/rubocop-layout.yml +38 -22
  41. data/rubocop-lint.yml +81 -19
  42. data/rubocop-metrics.yml +1 -4
  43. data/rubocop-migrations.yml +22 -0
  44. data/rubocop-naming.yml +9 -8
  45. data/rubocop-performance.yml +48 -0
  46. data/rubocop-rails.yml +79 -0
  47. data/rubocop-rspec.yml +14 -0
  48. data/rubocop-security.yml +1 -0
  49. data/rubocop-style.yml +119 -15
  50. metadata +27 -17
  51. 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: 3.2.0
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-03-26 00:00:00.000000000 Z
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.74.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.74.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.4.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.4.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.0'
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.0'
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.36'
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.36'
82
+ version: '1.44'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,18 +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"
135
+ - ".gitlab/merge_request_templates/Release.md"
134
136
  - ".rspec"
135
137
  - ".rubocop.yml"
136
- - ".rubocop_todo.yml"
137
138
  - CODE_OF_CONDUCT.md
138
139
  - CONTRIBUTING.md
139
140
  - Gemfile
@@ -147,26 +148,35 @@ files:
147
148
  - lib/gitlab/styles/rubocop.rb
148
149
  - lib/gitlab/styles/rubocop/cop/active_record_dependent.rb
149
150
  - lib/gitlab/styles/rubocop/cop/active_record_serialize.rb
151
+ - lib/gitlab/styles/rubocop/cop/code_reuse/active_record.rb
150
152
  - lib/gitlab/styles/rubocop/cop/custom_error_class.rb
151
153
  - lib/gitlab/styles/rubocop/cop/gem_fetcher.rb
152
154
  - lib/gitlab/styles/rubocop/cop/in_batches.rb
153
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
154
158
  - lib/gitlab/styles/rubocop/cop/polymorphic_associations.rb
155
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
156
163
  - lib/gitlab/styles/rubocop/cop/rspec/have_link_parameters.rb
157
164
  - lib/gitlab/styles/rubocop/cop/rspec/single_line_hook.rb
158
165
  - lib/gitlab/styles/rubocop/cop/rspec/verbose_include_metadata.rb
159
166
  - lib/gitlab/styles/rubocop/cop/without_reactive_cache.rb
160
167
  - lib/gitlab/styles/rubocop/migration_helpers.rb
161
168
  - lib/gitlab/styles/rubocop/model_helpers.rb
169
+ - lib/gitlab/styles/rubocop/rspec/helpers.rb
162
170
  - lib/gitlab/styles/version.rb
163
171
  - rubocop-all.yml
164
172
  - rubocop-bundler.yml
173
+ - rubocop-code_reuse.yml
165
174
  - rubocop-default.yml
166
175
  - rubocop-gemspec.yml
167
176
  - rubocop-layout.yml
168
177
  - rubocop-lint.yml
169
178
  - rubocop-metrics.yml
179
+ - rubocop-migrations.yml
170
180
  - rubocop-naming.yml
171
181
  - rubocop-performance.yml
172
182
  - rubocop-rails.yml
@@ -177,7 +187,7 @@ homepage: https://gitlab.com/gitlab-org/gitlab-styles
177
187
  licenses:
178
188
  - MIT
179
189
  metadata: {}
180
- post_install_message:
190
+ post_install_message:
181
191
  rdoc_options: []
182
192
  require_paths:
183
193
  - lib
@@ -185,15 +195,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
195
  requirements:
186
196
  - - ">="
187
197
  - !ruby/object:Gem::Version
188
- version: '0'
198
+ version: '2.6'
189
199
  required_rubygems_version: !ruby/object:Gem::Requirement
190
200
  requirements:
191
201
  - - ">="
192
202
  - !ruby/object:Gem::Version
193
203
  version: '0'
194
204
  requirements: []
195
- rubygems_version: 3.0.3
196
- signing_key:
205
+ rubygems_version: 3.1.4
206
+ signing_key:
197
207
  specification_version: 4
198
208
  summary: GitLab style guides and shared style configs.
199
209
  test_files: []
@@ -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.