gitlab-styles 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73ee648b7b50478acc9d34d9a84e108a69ea1067b28b9bd9ab04f364b09f5ee1
4
- data.tar.gz: a157fb76a7d78910b51231f3cda7388e1db87080e0b52a9b623322ba35664bff
3
+ metadata.gz: 53b2719f9b6600bdfd8b362ad363f86f35dbae708f8ebd41f1ef2e2429d4c4f0
4
+ data.tar.gz: f480238835c2218118ea34ac3ebf2869e2386e500304530fd08a112701175845
5
5
  SHA512:
6
- metadata.gz: 9a46d0faf108cf1a4a33209dd1e4f6e6021c28e0d877e4835d07980bcc1810bb0d378198505f146d7175111449c3d919923970a0550ecdd55bb43a66310f199e
7
- data.tar.gz: 621abc0dbb787baec9491369a45061d608c5bf71b31b31530bb63426b3ee0bb3e53ea16d0a63656bf136097023953eab287dabeb274d8a95bd9af991686cdaa0
6
+ metadata.gz: f5d87f035504e911546c7aaaaad23bac44035f65848d0a3c74cf284bdddd4e8f460c6da7e4766ee9465f75051d38d5e1d3c4b674bc910ce320204e356a9f3622
7
+ data.tar.gz: b97be714bb886604639de5d788284b0c8af1b081ce279c8a5fdf6dafff9b2aeee83060576f0ce0322bb49168ccdc58a4abafd0de13442425d705523d9d6a6a5d
@@ -3,7 +3,7 @@ stages:
3
3
  - deploy
4
4
 
5
5
  default:
6
- image: ruby:2.6
6
+ image: ruby:2.7
7
7
  tags:
8
8
  - gitlab-org
9
9
  before_script:
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency 'rubocop-rails', '~> 2.8'
29
29
  spec.add_dependency 'rubocop-rspec', '~> 1.44'
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 1.16'
31
+ spec.add_development_dependency 'bundler', '~> 2.1'
32
32
  spec.add_development_dependency 'rake', '~> 10.0'
33
33
  spec.add_development_dependency 'rspec', '~> 3.0'
34
34
  end
@@ -1,23 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'gitlab/styles/rubocop/cop/custom_error_class'
4
- require 'gitlab/styles/rubocop/cop/gem_fetcher'
5
- require 'gitlab/styles/rubocop/cop/active_record_serialize'
6
- require 'gitlab/styles/rubocop/cop/redirect_with_status'
7
- require 'gitlab/styles/rubocop/cop/polymorphic_associations'
8
- require 'gitlab/styles/rubocop/cop/active_record_dependent'
9
- require 'gitlab/styles/rubocop/cop/in_batches'
10
- require 'gitlab/styles/rubocop/cop/line_break_after_guard_clauses'
11
- require 'gitlab/styles/rubocop/cop/line_break_around_conditional_block'
12
- require 'gitlab/styles/rubocop/cop/code_reuse/active_record'
13
- require 'gitlab/styles/rubocop/cop/migration/update_large_table'
14
- require 'gitlab/styles/rubocop/cop/without_reactive_cache'
15
- require 'gitlab/styles/rubocop/cop/rspec/single_line_hook'
16
- require 'gitlab/styles/rubocop/cop/rspec/have_link_parameters'
17
- require 'gitlab/styles/rubocop/cop/rspec/verbose_include_metadata'
18
- require 'gitlab/styles/rubocop/cop/rspec/empty_line_after_shared_example'
19
- require 'gitlab/styles/rubocop/cop/rspec/empty_line_after_let_block'
20
- require 'gitlab/styles/rubocop/cop/rspec/example_starting_character'
3
+ # Auto-require all cops under `gitlab/styles/rubocop/cop/**/*.rb`
4
+ cops_glob = File.join(__dir__, 'rubocop', 'cop', '**', '*.rb')
5
+ Dir[cops_glob].sort.each(&method(:require))
21
6
 
22
7
  module Gitlab
23
8
  module Styles
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Styles
5
- VERSION = '5.2.0'
5
+ VERSION = '5.3.0'
6
6
  end
7
7
  end
@@ -13,6 +13,7 @@ Style/Alias:
13
13
  # or completely (always).
14
14
  Style/AndOr:
15
15
  Enabled: true
16
+ EnforcedStyle: always
16
17
 
17
18
  # Enforces the use of Array() instead of explicit Array check or [*var]
18
19
  # https://docs.rubocop.org/rubocop/0.89/cops_style.html#stylearraycoercion
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: 5.2.0
4
+ version: 5.3.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-12-08 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.16'
89
+ version: '2.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.16'
96
+ version: '2.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement