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 +4 -4
- data/.gitlab-ci.yml +1 -1
- data/gitlab-styles.gemspec +1 -1
- data/lib/gitlab/styles/rubocop.rb +3 -18
- data/lib/gitlab/styles/version.rb +1 -1
- data/rubocop-style.yml +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53b2719f9b6600bdfd8b362ad363f86f35dbae708f8ebd41f1ef2e2429d4c4f0
|
4
|
+
data.tar.gz: f480238835c2218118ea34ac3ebf2869e2386e500304530fd08a112701175845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d87f035504e911546c7aaaaad23bac44035f65848d0a3c74cf284bdddd4e8f460c6da7e4766ee9465f75051d38d5e1d3c4b674bc910ce320204e356a9f3622
|
7
|
+
data.tar.gz: b97be714bb886604639de5d788284b0c8af1b081ce279c8a5fdf6dafff9b2aeee83060576f0ce0322bb49168ccdc58a4abafd0de13442425d705523d9d6a6a5d
|
data/.gitlab-ci.yml
CHANGED
data/gitlab-styles.gemspec
CHANGED
@@ -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
|
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
|
4
|
-
|
5
|
-
require
|
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
|
data/rubocop-style.yml
CHANGED
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.
|
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-
|
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
|
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
|
96
|
+
version: '2.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|