gitlab-styles 14.1.0 → 15.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/.gitlab-ci.yml +2 -3
- data/.rubocop.yml +2 -23
- data/.rubocop_todo.yml +1 -2
- data/Gemfile.lock +243 -132
- data/README.md +21 -10
- data/gitlab-styles.gemspec +21 -22
- data/lib/gitlab/styles/rubocop/rspec.rb +4 -0
- data/lib/gitlab/styles/rubocop.rb +6 -3
- data/lib/gitlab/styles/version.rb +1 -1
- data/lib/rubocop/cop/avoid_return_from_blocks.rb +4 -3
- data/lib/rubocop/cop/rspec/base.rb +1 -0
- data/lib/rubocop/cop/rspec/empty_line_after_let_block.rb +1 -0
- data/lib/rubocop/cop/rspec/empty_line_after_shared_example.rb +3 -2
- data/lib/rubocop/cop/rspec/example_starting_character.rb +3 -4
- data/lib/rubocop/cop/rspec/feature_spec_max_examples.rb +1 -0
- data/lib/rubocop/cop/rspec/single_line_hook.rb +1 -0
- data/rubocop-all.yml +1 -1
- data/rubocop-capybara.yml +1 -2
- data/rubocop-code_reuse.yml +1 -1
- data/rubocop-default.yml +0 -3
- data/rubocop-factory_bot.yml +1 -2
- data/rubocop-fips.yml +3 -1
- data/rubocop-graphql.yml +1 -1
- data/rubocop-internal-affairs.yml +4 -1
- data/rubocop-layout.yml +6 -1
- data/rubocop-migrations.yml +1 -1
- data/rubocop-performance.yml +3 -8
- data/rubocop-rails.yml +8 -2
- data/rubocop-rspec.yml +19 -2
- data/rubocop-security.yml +7 -1
- data/rubocop-style.yml +4 -1
- data/rubocop-tailwind.yml +2 -1
- metadata +42 -57
- data/lib/rubocop/cop/line_break_after_guard_clauses.rb +0 -99
- data/lib/rubocop/cop/style/open_struct_use.rb +0 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af252225157d53c8a10e16dfd62aea1f7b800696270294e894256db6865d8da9
|
|
4
|
+
data.tar.gz: fad8bd44995746989741c9d29c58638733ec7bd08ab4f11850e14c0af89ae4ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 327b9409803f8a6ac3e363ba77da83b82ed9c7fd0b2072ddef1aa9be7555b67d5e57f8a5967ca02e97b4b53b3184975e7ac5859147cc18c57e376833c430f80f
|
|
7
|
+
data.tar.gz: ecadff4c88245c4d9f7fe0f364f4d4ddde7e1f0ab31287cc4f0ab98e3f62f1c8d5d3feb2aa94fcd20c07804e1a6a3b6ec71ec668999ca60ae587431d6d9dc115
|
data/.gitlab-ci.yml
CHANGED
|
@@ -25,7 +25,7 @@ default:
|
|
|
25
25
|
- bundle install -j $(nproc)
|
|
26
26
|
parallel:
|
|
27
27
|
matrix:
|
|
28
|
-
- RUBY_VERSION: ['3.
|
|
28
|
+
- RUBY_VERSION: ['3.3', '3.4', '4.0']
|
|
29
29
|
|
|
30
30
|
styles:
|
|
31
31
|
extends: .base-ruby-job
|
|
@@ -38,14 +38,13 @@ specs:
|
|
|
38
38
|
stage: test
|
|
39
39
|
script:
|
|
40
40
|
# Disable simplecov for all Ruby version other than the target Ruby version.
|
|
41
|
-
- if [[ "$RUBY_VERSION" != "3.
|
|
41
|
+
- if [[ "$RUBY_VERSION" != "3.3" ]]; then export SIMPLECOV=0; fi
|
|
42
42
|
- bundle exec rspec
|
|
43
43
|
artifacts:
|
|
44
44
|
name: coverage
|
|
45
45
|
expire_in: 31d
|
|
46
46
|
paths:
|
|
47
47
|
- coverage/index.html
|
|
48
|
-
- coverage/assets/
|
|
49
48
|
reports:
|
|
50
49
|
coverage_report:
|
|
51
50
|
coverage_format: cobertura
|
data/.rubocop.yml
CHANGED
|
@@ -4,8 +4,8 @@ inherit_from:
|
|
|
4
4
|
- rubocop-internal-affairs.yml
|
|
5
5
|
- .rubocop_todo.yml
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- rubocop
|
|
7
|
+
plugins:
|
|
8
|
+
- rubocop-internal_affairs
|
|
9
9
|
- rubocop-rake
|
|
10
10
|
|
|
11
11
|
inherit_mode:
|
|
@@ -14,8 +14,6 @@ inherit_mode:
|
|
|
14
14
|
|
|
15
15
|
AllCops:
|
|
16
16
|
NewCops: disable # https://gitlab.com/gitlab-org/ruby/gems/gitlab-styles/-/issues/40
|
|
17
|
-
Exclude:
|
|
18
|
-
- 'playground/**/*'
|
|
19
17
|
|
|
20
18
|
Gemspec/DevelopmentDependencies:
|
|
21
19
|
EnforcedStyle: gemspec
|
|
@@ -32,22 +30,3 @@ InternalAffairs/DeprecateCopHelper:
|
|
|
32
30
|
# but realistically this is OK here.
|
|
33
31
|
InternalAffairs/UndefinedConfig:
|
|
34
32
|
Enabled: false
|
|
35
|
-
|
|
36
|
-
# Disable Rails-specific cops auto-enabled as part of `gitlab-styles`.
|
|
37
|
-
CodeReuse/ActiveRecord:
|
|
38
|
-
Enabled: false
|
|
39
|
-
|
|
40
|
-
Cop/ActiveRecordDependent:
|
|
41
|
-
Enabled: false
|
|
42
|
-
|
|
43
|
-
Cop/ActiveRecordSerialize:
|
|
44
|
-
Enabled: false
|
|
45
|
-
|
|
46
|
-
Cop/PolymorphicAssociations:
|
|
47
|
-
Enabled: false
|
|
48
|
-
|
|
49
|
-
Cop/RedirectWithStatus:
|
|
50
|
-
Enabled: false
|
|
51
|
-
|
|
52
|
-
Cop/InBatches:
|
|
53
|
-
Enabled: false
|
data/.rubocop_todo.yml
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 9
|
|
10
10
|
InternalAffairs/MissingCopDepartment:
|
|
11
11
|
Exclude:
|
|
12
12
|
- 'lib/rubocop/cop/active_record_dependent.rb'
|
|
@@ -15,7 +15,6 @@ InternalAffairs/MissingCopDepartment:
|
|
|
15
15
|
- 'lib/rubocop/cop/custom_error_class.rb'
|
|
16
16
|
- 'lib/rubocop/cop/gem_fetcher.rb'
|
|
17
17
|
- 'lib/rubocop/cop/in_batches.rb'
|
|
18
|
-
- 'lib/rubocop/cop/line_break_after_guard_clauses.rb'
|
|
19
18
|
- 'lib/rubocop/cop/line_break_around_conditional_block.rb'
|
|
20
19
|
- 'lib/rubocop/cop/polymorphic_associations.rb'
|
|
21
20
|
- 'lib/rubocop/cop/redirect_with_status.rb'
|
data/Gemfile.lock
CHANGED
|
@@ -1,30 +1,41 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gitlab-styles (
|
|
5
|
-
rubocop (= 1.
|
|
6
|
-
rubocop-capybara (=
|
|
7
|
-
rubocop-factory_bot (= 2.
|
|
8
|
-
rubocop-graphql (= 1.
|
|
9
|
-
rubocop-performance (= 1.
|
|
10
|
-
rubocop-rails (= 2.
|
|
11
|
-
rubocop-rspec (= 3.
|
|
12
|
-
rubocop-rspec_rails (= 2.
|
|
4
|
+
gitlab-styles (15.0.0)
|
|
5
|
+
rubocop (= 1.92.1)
|
|
6
|
+
rubocop-capybara (= 3.1.0)
|
|
7
|
+
rubocop-factory_bot (= 2.28.0)
|
|
8
|
+
rubocop-graphql (= 1.8.0)
|
|
9
|
+
rubocop-performance (= 1.27.0)
|
|
10
|
+
rubocop-rails (= 2.38.0)
|
|
11
|
+
rubocop-rspec (= 3.10.2)
|
|
12
|
+
rubocop-rspec_rails (= 2.33.0)
|
|
13
13
|
|
|
14
14
|
GEM
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
|
-
activesupport (7.
|
|
18
|
-
|
|
17
|
+
activesupport (7.2.4)
|
|
18
|
+
base64
|
|
19
|
+
benchmark (>= 0.3)
|
|
20
|
+
bigdecimal
|
|
21
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
22
|
+
connection_pool (>= 2.2.5, < 3)
|
|
23
|
+
drb
|
|
19
24
|
i18n (>= 1.6, < 2)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
logger (>= 1.4.2)
|
|
26
|
+
minitest (>= 5.1, < 6)
|
|
27
|
+
securerandom (>= 0.3)
|
|
28
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
29
|
+
addressable (2.9.0)
|
|
30
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
24
31
|
ast (2.4.2)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
base64 (0.3.0)
|
|
33
|
+
benchmark (0.5.0)
|
|
34
|
+
bigdecimal (3.3.1)
|
|
35
|
+
binding_of_caller (2.0.0)
|
|
36
|
+
debug_inspector (>= 1.2.0)
|
|
37
|
+
byebug (13.0.0)
|
|
38
|
+
reline (>= 0.6.0)
|
|
28
39
|
claide (1.1.0)
|
|
29
40
|
claide-plugins (0.9.2)
|
|
30
41
|
cork
|
|
@@ -32,9 +43,11 @@ GEM
|
|
|
32
43
|
open4 (~> 1.3)
|
|
33
44
|
coderay (1.1.3)
|
|
34
45
|
colored2 (3.1.2)
|
|
35
|
-
concurrent-ruby (1.
|
|
46
|
+
concurrent-ruby (1.3.8)
|
|
47
|
+
connection_pool (2.5.5)
|
|
36
48
|
cork (0.3.0)
|
|
37
49
|
colored2 (~> 3.1)
|
|
50
|
+
csv (3.3.6)
|
|
38
51
|
danger (9.3.2)
|
|
39
52
|
claide (~> 1.0)
|
|
40
53
|
claide-plugins (>= 0.9.2)
|
|
@@ -51,63 +64,54 @@ GEM
|
|
|
51
64
|
danger-gitlab (8.0.0)
|
|
52
65
|
danger
|
|
53
66
|
gitlab (~> 4.2, >= 4.2.0)
|
|
54
|
-
debug_inspector (1.
|
|
67
|
+
debug_inspector (1.2.0)
|
|
55
68
|
diff-lcs (1.5.0)
|
|
56
|
-
|
|
57
|
-
faraday (
|
|
58
|
-
faraday-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
faraday-httpclient (~> 1.0)
|
|
62
|
-
faraday-multipart (~> 1.0)
|
|
63
|
-
faraday-net_http (~> 1.0)
|
|
64
|
-
faraday-net_http_persistent (~> 1.0)
|
|
65
|
-
faraday-patron (~> 1.0)
|
|
66
|
-
faraday-rack (~> 1.0)
|
|
67
|
-
faraday-retry (~> 1.0)
|
|
68
|
-
ruby2_keywords (>= 0.0.4)
|
|
69
|
-
faraday-em_http (1.0.0)
|
|
70
|
-
faraday-em_synchrony (1.0.0)
|
|
71
|
-
faraday-excon (1.1.0)
|
|
69
|
+
drb (2.2.3)
|
|
70
|
+
faraday (2.15.0)
|
|
71
|
+
faraday-net_http (>= 2.0, < 3.6)
|
|
72
|
+
json
|
|
73
|
+
logger
|
|
72
74
|
faraday-http-cache (2.5.0)
|
|
73
75
|
faraday (>= 0.8)
|
|
74
|
-
faraday-
|
|
75
|
-
|
|
76
|
-
multipart-post (~> 2)
|
|
77
|
-
faraday-net_http (1.0.1)
|
|
78
|
-
faraday-net_http_persistent (1.2.0)
|
|
79
|
-
faraday-patron (1.0.0)
|
|
80
|
-
faraday-rack (1.0.0)
|
|
81
|
-
faraday-retry (1.0.3)
|
|
76
|
+
faraday-net_http (3.5.0)
|
|
77
|
+
net-http (~> 0.5)
|
|
82
78
|
git (1.18.0)
|
|
83
79
|
addressable (~> 2.8)
|
|
84
80
|
rchardet (~> 1.8)
|
|
85
81
|
gitlab (4.19.0)
|
|
86
82
|
httparty (~> 0.20)
|
|
87
83
|
terminal-table (>= 1.5.1)
|
|
88
|
-
gitlab-dangerfiles (4.
|
|
84
|
+
gitlab-dangerfiles (4.14.0)
|
|
89
85
|
danger (>= 9.3.0)
|
|
90
86
|
danger-gitlab (>= 8.0.0)
|
|
91
87
|
rake (~> 13.0)
|
|
92
|
-
httparty (0.
|
|
88
|
+
httparty (0.24.3)
|
|
89
|
+
csv
|
|
93
90
|
mini_mime (>= 1.0.0)
|
|
94
91
|
multi_xml (>= 0.5.2)
|
|
95
|
-
i18n (1.
|
|
92
|
+
i18n (1.15.2)
|
|
96
93
|
concurrent-ruby (~> 1.0)
|
|
97
|
-
|
|
94
|
+
io-console (0.9.4)
|
|
95
|
+
json (3.1.0)
|
|
98
96
|
kramdown (2.4.0)
|
|
99
97
|
rexml
|
|
100
98
|
kramdown-parser-gfm (1.1.0)
|
|
101
99
|
kramdown (~> 2.0)
|
|
102
100
|
language_server-protocol (3.17.0.3)
|
|
103
|
-
lefthook (
|
|
101
|
+
lefthook (2.2.2)
|
|
104
102
|
lint_roller (1.1.0)
|
|
103
|
+
logger (1.7.0)
|
|
105
104
|
method_source (1.0.0)
|
|
106
105
|
mini_mime (1.1.5)
|
|
107
|
-
minitest (5.
|
|
108
|
-
multi_xml (0.
|
|
109
|
-
|
|
106
|
+
minitest (5.27.0)
|
|
107
|
+
multi_xml (0.7.1)
|
|
108
|
+
bigdecimal (~> 3.1)
|
|
110
109
|
nap (1.1.0)
|
|
110
|
+
net-http (0.10.0)
|
|
111
|
+
net-protocol (>= 0.3.0)
|
|
112
|
+
uri (>= 0.11.1)
|
|
113
|
+
net-protocol (0.4.0)
|
|
114
|
+
timeout
|
|
111
115
|
no_proxy_fix (0.1.2)
|
|
112
116
|
octokit (6.1.1)
|
|
113
117
|
faraday (>= 1, < 3)
|
|
@@ -117,125 +121,232 @@ GEM
|
|
|
117
121
|
parser (3.3.10.0)
|
|
118
122
|
ast (~> 2.4.1)
|
|
119
123
|
racc
|
|
120
|
-
prism (1.
|
|
121
|
-
proc_to_ast (0.
|
|
122
|
-
coderay
|
|
124
|
+
prism (1.9.0)
|
|
125
|
+
proc_to_ast (0.2.0)
|
|
123
126
|
parser
|
|
127
|
+
rouge
|
|
124
128
|
unparser
|
|
125
|
-
pry (0.
|
|
129
|
+
pry (0.16.1)
|
|
126
130
|
coderay (~> 1.1)
|
|
127
131
|
method_source (~> 1.0)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
reline (>= 0.6.0)
|
|
133
|
+
pry-byebug (3.12.0)
|
|
134
|
+
byebug (~> 13.0)
|
|
135
|
+
pry (>= 0.13, < 0.17)
|
|
136
|
+
public_suffix (6.0.2)
|
|
132
137
|
racc (1.8.0)
|
|
133
|
-
rack (3.
|
|
138
|
+
rack (3.2.7)
|
|
134
139
|
rainbow (3.1.1)
|
|
135
|
-
rake (13.
|
|
140
|
+
rake (13.4.2)
|
|
136
141
|
rchardet (1.8.0)
|
|
137
|
-
regexp_parser (2.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
rspec-
|
|
146
|
-
|
|
142
|
+
regexp_parser (2.13.1)
|
|
143
|
+
reline (0.7.0)
|
|
144
|
+
io-console (~> 0.5)
|
|
145
|
+
rexml (3.4.4)
|
|
146
|
+
rouge (5.1.0)
|
|
147
|
+
strscan (~> 3.1)
|
|
148
|
+
rspec (3.13.2)
|
|
149
|
+
rspec-core (~> 3.13.0)
|
|
150
|
+
rspec-expectations (~> 3.13.0)
|
|
151
|
+
rspec-mocks (~> 3.13.0)
|
|
152
|
+
rspec-core (3.13.6)
|
|
153
|
+
rspec-support (~> 3.13.0)
|
|
154
|
+
rspec-expectations (3.13.5)
|
|
147
155
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
148
|
-
rspec-support (~> 3.
|
|
149
|
-
rspec-mocks (3.
|
|
156
|
+
rspec-support (~> 3.13.0)
|
|
157
|
+
rspec-mocks (3.13.8)
|
|
150
158
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
151
|
-
rspec-support (~> 3.
|
|
152
|
-
rspec-parameterized-core (
|
|
159
|
+
rspec-support (~> 3.13.0)
|
|
160
|
+
rspec-parameterized-core (2.0.2)
|
|
153
161
|
parser
|
|
154
|
-
|
|
162
|
+
prism
|
|
163
|
+
proc_to_ast (>= 0.2.0)
|
|
155
164
|
rspec (>= 2.13, < 4)
|
|
156
165
|
unparser
|
|
157
|
-
rspec-parameterized-table_syntax (1.
|
|
158
|
-
binding_of_caller
|
|
159
|
-
rspec-parameterized-core (<
|
|
160
|
-
rspec-support (3.
|
|
161
|
-
rubocop (1.
|
|
162
|
-
json (
|
|
166
|
+
rspec-parameterized-table_syntax (2.1.1)
|
|
167
|
+
binding_of_caller (>= 2)
|
|
168
|
+
rspec-parameterized-core (>= 2, < 3)
|
|
169
|
+
rspec-support (3.13.7)
|
|
170
|
+
rubocop (1.92.1)
|
|
171
|
+
json (>= 2.3)
|
|
163
172
|
language_server-protocol (~> 3.17.0.2)
|
|
164
173
|
lint_roller (~> 1.1.0)
|
|
165
|
-
parallel (
|
|
174
|
+
parallel (>= 1.10)
|
|
166
175
|
parser (>= 3.3.0.2)
|
|
167
176
|
rainbow (>= 2.2.2, < 4.0)
|
|
168
|
-
regexp_parser (>= 2.
|
|
169
|
-
rubocop-ast (>= 1.
|
|
177
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
178
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
170
179
|
ruby-progressbar (~> 1.7)
|
|
171
180
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
172
|
-
rubocop-ast (1.
|
|
181
|
+
rubocop-ast (1.50.0)
|
|
173
182
|
parser (>= 3.3.7.2)
|
|
174
|
-
prism (~> 1.
|
|
175
|
-
rubocop-capybara (
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
rubocop (
|
|
181
|
-
rubocop-
|
|
182
|
-
|
|
183
|
-
rubocop
|
|
184
|
-
rubocop-
|
|
183
|
+
prism (~> 1.7)
|
|
184
|
+
rubocop-capybara (3.1.0)
|
|
185
|
+
lint_roller (~> 1.1)
|
|
186
|
+
rubocop (~> 1.89)
|
|
187
|
+
rubocop-factory_bot (2.28.0)
|
|
188
|
+
lint_roller (~> 1.1)
|
|
189
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
190
|
+
rubocop-graphql (1.8.0)
|
|
191
|
+
lint_roller (~> 1.1)
|
|
192
|
+
rubocop (>= 1.89, < 2)
|
|
193
|
+
rubocop-performance (1.27.0)
|
|
194
|
+
lint_roller (~> 1.1)
|
|
195
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
196
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
197
|
+
rubocop-rails (2.38.0)
|
|
185
198
|
activesupport (>= 4.2.0)
|
|
199
|
+
lint_roller (~> 1.1)
|
|
186
200
|
rack (>= 1.1)
|
|
187
|
-
rubocop (>= 1.
|
|
188
|
-
rubocop-ast (>= 1.
|
|
189
|
-
rubocop-rake (0.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
rubocop
|
|
201
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
202
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
203
|
+
rubocop-rake (0.7.1)
|
|
204
|
+
lint_roller (~> 1.1)
|
|
205
|
+
rubocop (>= 1.72.1)
|
|
206
|
+
rubocop-rspec (3.10.2)
|
|
207
|
+
lint_roller (~> 1.1)
|
|
208
|
+
regexp_parser (>= 2.0)
|
|
209
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
210
|
+
rubocop-rspec_rails (2.33.0)
|
|
211
|
+
lint_roller (~> 1.1)
|
|
212
|
+
rubocop (~> 1.89)
|
|
213
|
+
rubocop-rspec (~> 3.5)
|
|
196
214
|
ruby-progressbar (1.13.0)
|
|
197
|
-
ruby2_keywords (0.0.5)
|
|
198
215
|
sawyer (0.9.2)
|
|
199
216
|
addressable (>= 2.3.5)
|
|
200
217
|
faraday (>= 0.17.3, < 3)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
simplecov_json_formatter (~> 0.1)
|
|
205
|
-
simplecov-cobertura (2.1.0)
|
|
218
|
+
securerandom (0.4.1)
|
|
219
|
+
simplecov (1.3.2)
|
|
220
|
+
simplecov-cobertura (4.0.0)
|
|
206
221
|
rexml
|
|
207
|
-
simplecov (~> 0
|
|
208
|
-
|
|
209
|
-
simplecov_json_formatter (0.1.4)
|
|
210
|
-
strscan (3.1.0)
|
|
222
|
+
simplecov (~> 1.0)
|
|
223
|
+
strscan (3.1.8)
|
|
211
224
|
terminal-table (3.0.2)
|
|
212
225
|
unicode-display_width (>= 1.1.1, < 3)
|
|
213
|
-
test_file_finder (0.1
|
|
214
|
-
faraday (
|
|
226
|
+
test_file_finder (0.3.1)
|
|
227
|
+
faraday (>= 1.0, < 3.0, != 2.0.0)
|
|
228
|
+
timeout (0.6.1)
|
|
215
229
|
tzinfo (2.0.6)
|
|
216
230
|
concurrent-ruby (~> 1.0)
|
|
217
231
|
unicode-display_width (2.5.0)
|
|
218
232
|
unparser (0.6.7)
|
|
219
233
|
diff-lcs (~> 1.3)
|
|
220
234
|
parser (>= 3.2.0)
|
|
235
|
+
uri (1.1.2)
|
|
221
236
|
|
|
222
237
|
PLATFORMS
|
|
223
238
|
ruby
|
|
224
239
|
|
|
225
240
|
DEPENDENCIES
|
|
226
|
-
bundler (~>
|
|
227
|
-
gitlab-dangerfiles (~> 4.
|
|
241
|
+
bundler (~> 4.0)
|
|
242
|
+
gitlab-dangerfiles (~> 4.14.0)
|
|
228
243
|
gitlab-styles!
|
|
229
|
-
lefthook (~>
|
|
230
|
-
pry-byebug (~> 3.
|
|
231
|
-
rake (~> 13.
|
|
232
|
-
rspec (~> 3.
|
|
233
|
-
rspec-parameterized-table_syntax (~> 1
|
|
234
|
-
rubocop-rake (~> 0.
|
|
235
|
-
simplecov (~>
|
|
236
|
-
simplecov-cobertura (~>
|
|
237
|
-
|
|
238
|
-
|
|
244
|
+
lefthook (~> 2.2)
|
|
245
|
+
pry-byebug (~> 3.12)
|
|
246
|
+
rake (~> 13.4)
|
|
247
|
+
rspec (~> 3.13)
|
|
248
|
+
rspec-parameterized-table_syntax (~> 2.1)
|
|
249
|
+
rubocop-rake (~> 0.7)
|
|
250
|
+
simplecov (~> 1.3)
|
|
251
|
+
simplecov-cobertura (~> 4.0)
|
|
252
|
+
test_file_finder (~> 0.3)
|
|
253
|
+
|
|
254
|
+
CHECKSUMS
|
|
255
|
+
activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788
|
|
256
|
+
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
|
|
257
|
+
ast (2.4.2) sha256=1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12
|
|
258
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
259
|
+
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
260
|
+
bigdecimal (3.3.1) sha256=eaa01e228be54c4f9f53bf3cc34fe3d5e845c31963e7fcc5bedb05a4e7d52218
|
|
261
|
+
binding_of_caller (2.0.0) sha256=e53eebf8428a85587aede7b43a83e7419eb85b8b690938a96aa330d03052d517
|
|
262
|
+
bundler (4.0.23) sha256=407ba8a1d928f412847f819aa5f8b6aef7c59fb51feb517112af8a165487287b
|
|
263
|
+
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
264
|
+
claide (1.1.0) sha256=6d3c5c089dde904d96aa30e73306d0d4bd444b1accb9b3125ce14a3c0183f82e
|
|
265
|
+
claide-plugins (0.9.2) sha256=c7ea78bc067ab23bce8515497cdcdcb8f01c86dadfbe13c44644e382922c1c2e
|
|
266
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
267
|
+
colored2 (3.1.2) sha256=b13c2bd7eeae2cf7356a62501d398e72fde78780bd26aec6a979578293c28b4a
|
|
268
|
+
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
269
|
+
connection_pool (2.5.5) sha256=e54ff92855753df1fd7c59fa04a398833355f27dd14c074f8c83a05f72a716ad
|
|
270
|
+
cork (0.3.0) sha256=a0a0ac50e262f8514d1abe0a14e95e71c98b24e3378690e5d044daf0013ad4bc
|
|
271
|
+
csv (3.3.6) sha256=aba61e7e507a66f03d45cb1f3c4b6359861c3504038b422962875dce099e4456
|
|
272
|
+
danger (9.3.2) sha256=76f9816d67aae686a4290d574253b0f76d7b10213403f0ec3eca6238ec4f2be7
|
|
273
|
+
danger-gitlab (8.0.0) sha256=497dd7d0f6513913de651019223d8058cf494df10acbd17de92b175dfa04a3a8
|
|
274
|
+
debug_inspector (1.2.0) sha256=9bdfa02eebc3da163833e6a89b154084232f5766087e59573b70521c77ea68a2
|
|
275
|
+
diff-lcs (1.5.0) sha256=49b934001c8c6aedb37ba19daec5c634da27b318a7a3c654ae979d6ba1929b67
|
|
276
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
277
|
+
faraday (2.15.0) sha256=3be0eff0187ed913a1b4f679e9fcfe845b542cdd4f75b76cd6181a4ae1335fff
|
|
278
|
+
faraday-http-cache (2.5.0) sha256=64b7366d66e508e1c3dd855ebb20ce9da429330e412a23d9ebbc0a7a7b227463
|
|
279
|
+
faraday-net_http (3.5.0) sha256=2e7094c34e38754ee048cc3df47376f8657005d9375f8473bce1c3b526a22e36
|
|
280
|
+
git (1.18.0) sha256=c9b80462e4565cd3d7a9ba8440c41d2c52244b17b0dad0bfddb46de70630c465
|
|
281
|
+
gitlab (4.19.0) sha256=3f645e3e195dbc24f0834fbf83e8ccfb2056d8e9712b01a640aad418a6949679
|
|
282
|
+
gitlab-dangerfiles (4.14.0) sha256=941503ef991829ef3edd2ff26a82e689bc4f2af3aa498a7e4912d835329ee3bf
|
|
283
|
+
gitlab-styles (15.0.0)
|
|
284
|
+
httparty (0.24.3) sha256=5c95cf29ca70d5bfd834e56140ddfca6e94166c3b870cde9c25d157cdb5a00d2
|
|
285
|
+
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
286
|
+
io-console (0.9.4) sha256=a403304f32928ee85e56d457b4612ca43f2703b561a3258844992bd24085fbb1
|
|
287
|
+
json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
|
|
288
|
+
kramdown (2.4.0) sha256=b62e5bcbd6ea20c7a6730ebbb2a107237856e14f29cebf5b10c876cc1a2481c5
|
|
289
|
+
kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729
|
|
290
|
+
language_server-protocol (3.17.0.3) sha256=3d5c58c02f44a20d972957a9febe386d7e7468ab3900ce6bd2b563dd910c6b3f
|
|
291
|
+
lefthook (2.2.2) sha256=c43405b5fd14cd6de0dad8bfb76895767e8f21bb342460f6434191b32c5be333
|
|
292
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
293
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
294
|
+
method_source (1.0.0) sha256=d779455a2b5666a079ce58577bfad8534f571af7cec8107f4dce328f0981dede
|
|
295
|
+
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
|
|
296
|
+
minitest (5.27.0) sha256=2d3b17f8a36fe7801c1adcffdbc38233b938eb0b4966e97a6739055a45fa77d5
|
|
297
|
+
multi_xml (0.7.1) sha256=4fce100c68af588ff91b8ba90a0bb3f0466f06c909f21a32f4962059140ba61b
|
|
298
|
+
nap (1.1.0) sha256=949691660f9d041d75be611bb2a8d2fd559c467537deac241f4097d9b5eea576
|
|
299
|
+
net-http (0.10.0) sha256=1a2ff6e37a05724973c43f2bf7bf105f59c36a4cd0a7e9b1c021a0a566987c27
|
|
300
|
+
net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
|
|
301
|
+
no_proxy_fix (0.1.2) sha256=4e9b4c31bb146de7fcf347dc1087bb13ac2039b56d50aa019e61036256abcd00
|
|
302
|
+
octokit (6.1.1) sha256=920e4a9d820205f70738f58de6a7e6ef0e2f25b27db954b5806a63105207b0bf
|
|
303
|
+
open4 (1.3.4) sha256=a1df037310624ecc1ea1d81264b11c83e96d0c3c1c6043108d37d396dcd0f4b1
|
|
304
|
+
parallel (1.24.0) sha256=5bf38efb9b37865f8e93d7a762727f8c5fc5deb19949f4040c76481d5eee9397
|
|
305
|
+
parser (3.3.10.0) sha256=ce3587fa5cc55a88c4ba5b2b37621b3329aadf5728f9eafa36bbd121462aabd6
|
|
306
|
+
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
307
|
+
proc_to_ast (0.2.0) sha256=4bb446419c3878c21d8792f8a129616690168f636b9e460b5a0ed26dd6680bbe
|
|
308
|
+
pry (0.16.1) sha256=d92d82c86e7f2dc34beec6d2892d5cf5ea517eea22eed3ceabb38ee62a98accc
|
|
309
|
+
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
310
|
+
public_suffix (6.0.2) sha256=bfa7cd5108066f8c9602e0d6d4114999a5df5839a63149d3e8b0f9c1d3558394
|
|
311
|
+
racc (1.8.0) sha256=09349a65c37c4fe710a435f25c9f1652e39f29ad6b1fa08d4a8d30c0553d3a08
|
|
312
|
+
rack (3.2.7) sha256=93e13e1c24f93556671d85d2d79fa228c3485815c50d7e2f265b5330c6528fb7
|
|
313
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
314
|
+
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
315
|
+
rchardet (1.8.0) sha256=693acd5253d5ade81a51940697955f6dd4bb2f0d245bda76a8e23deec70a52c7
|
|
316
|
+
regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
|
|
317
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
318
|
+
rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
|
|
319
|
+
rouge (5.1.0) sha256=b77c632842ab7f5147940212f0345808cccfbce864fd5b631d7d12a35ac85452
|
|
320
|
+
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
321
|
+
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
322
|
+
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
323
|
+
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
|
|
324
|
+
rspec-parameterized-core (2.0.2) sha256=e30ce6dfc6046ef34f930819fffbe72c03bbbe7b78792a0e13fe69a0090cc7df
|
|
325
|
+
rspec-parameterized-table_syntax (2.1.1) sha256=59cc68506162adef218b59952bf62142fd25079d01061f4ff115dcddd91a49df
|
|
326
|
+
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
327
|
+
rubocop (1.92.1) sha256=a905381a5344215a79abcfe80f6c94366447e6a55347c9a525b5a24990e33f62
|
|
328
|
+
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
329
|
+
rubocop-capybara (3.1.0) sha256=1712900b04178272b643f7bffa385f7b1d157c4f83a0ad502ae10690e18f5096
|
|
330
|
+
rubocop-factory_bot (2.28.0) sha256=4b17fc02124444173317e131759d195b0d762844a71a29fe8139c1105d92f0cb
|
|
331
|
+
rubocop-graphql (1.8.0) sha256=b3714aa5d9bbd1680d928439de71a0aa21e31318a0ae808d591ba8b40eb94745
|
|
332
|
+
rubocop-performance (1.27.0) sha256=eeeb1374d062a368ee1c787b70eb0b0cc4b184cb1f8565f424760946146d61ce
|
|
333
|
+
rubocop-rails (2.38.0) sha256=6e2b7c532efa95e3050371bec20b8f5b025662acead8bc70ee31f0e3e6fa2f06
|
|
334
|
+
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
|
335
|
+
rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
|
|
336
|
+
rubocop-rspec_rails (2.33.0) sha256=669e0a7a9a5fca6d6ccaf853ac65b5b8bdfde3519f604616f2c5278cbf565689
|
|
337
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
338
|
+
sawyer (0.9.2) sha256=fa3a72d62a4525517b18857ddb78926aab3424de0129be6772a8e2ba240e7aca
|
|
339
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
340
|
+
simplecov (1.3.2) sha256=2a22ec1759f1b8db60881a2e038758956fc69ef93ed669be0bde0678de6d0e85
|
|
341
|
+
simplecov-cobertura (4.0.0) sha256=e4fb3159b1ecea545b44f5452a8611305323e78ad23eae8aed35924d072e01ea
|
|
342
|
+
strscan (3.1.8) sha256=aae2db611a225559f21ffbb71765c9a4e60fd262534a9ea84f4f11c7f32f679e
|
|
343
|
+
terminal-table (3.0.2) sha256=f951b6af5f3e00203fb290a669e0a85c5dd5b051b3b023392ccfd67ba5abae91
|
|
344
|
+
test_file_finder (0.3.1) sha256=83fb0588a06b2784b51892910b9bfd06609f8d31f2d851a98d976f644d177199
|
|
345
|
+
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
|
|
346
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
347
|
+
unicode-display_width (2.5.0) sha256=7e7681dcade1add70cb9fda20dd77f300b8587c81ebbd165d14fd93144ff0ab4
|
|
348
|
+
unparser (0.6.7) sha256=ae42e73edfa273766e66c166368fb75ca5972cd8ec50c536253e0f6299a9dec8
|
|
349
|
+
uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
|
|
239
350
|
|
|
240
351
|
BUNDLED WITH
|
|
241
|
-
|
|
352
|
+
4.0.23
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gitlab::Styles
|
|
2
2
|
|
|
3
|
-
`Gitlab::Styles` centralizes
|
|
3
|
+
`Gitlab::Styles` centralizes shared GitLab style configurations (only RuboCop
|
|
4
4
|
for now), as well as custom RuboCop cops.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
@@ -52,11 +52,19 @@ rules:
|
|
|
52
52
|
|
|
53
53
|
- `rubocop-all.yml`
|
|
54
54
|
- `rubocop-bundler.yml`
|
|
55
|
+
- `rubocop-capybara.yml`
|
|
56
|
+
- `rubocop-code_reuse.yml`
|
|
57
|
+
- `rubocop-factory_bot.yml`
|
|
58
|
+
- `rubocop-fips.yml`
|
|
55
59
|
- `rubocop-gemspec.yml`
|
|
60
|
+
- `rubocop-graphql.yml`
|
|
61
|
+
- `rubocop-internal-affairs.yml`
|
|
56
62
|
- `rubocop-layout.yml`
|
|
57
63
|
- `rubocop-lint.yml`
|
|
58
|
-
- `rubocop-migrations.yml`
|
|
59
64
|
- `rubocop-metrics.yml`
|
|
65
|
+
- `rubocop-migrations.yml`
|
|
66
|
+
- `rubocop-minimal.yml`: for plain Ruby projects, the rules that don't depend on
|
|
67
|
+
Rails or GitLab code
|
|
60
68
|
- `rubocop-naming.yml`
|
|
61
69
|
- `rubocop-performance.yml`
|
|
62
70
|
- `rubocop-rails.yml`
|
|
@@ -74,20 +82,23 @@ inherit_gem:
|
|
|
74
82
|
- rubocop-naming.yml
|
|
75
83
|
```
|
|
76
84
|
|
|
85
|
+
Each file loads only the custom cops it configures. For example,
|
|
86
|
+
`CodeReuse/ActiveRecord` is only available if you inherit
|
|
87
|
+
`rubocop-code_reuse.yml`, directly or through `rubocop-default.yml`:
|
|
88
|
+
|
|
89
|
+
- If RuboCop reports `unrecognized cop or department` for one of this gem's
|
|
90
|
+
cops, either inherit the file that configures it, or remove that cop from
|
|
91
|
+
your configuration.
|
|
92
|
+
- If `Lint/RedundantCopDisableDirective` reports a `rubocop:disable` comment for
|
|
93
|
+
one of this gem's cops as unnecessary, the cop isn't loaded: remove the
|
|
94
|
+
comment, or inherit the file that configures the cop.
|
|
95
|
+
|
|
77
96
|
## Development
|
|
78
97
|
|
|
79
98
|
After checking out the repo, run `bin/setup` to install dependencies.
|
|
80
99
|
Then, run `rake spec` to run the tests. You can also run `bin/console` for an
|
|
81
100
|
interactive prompt that will allow you to experiment.
|
|
82
101
|
|
|
83
|
-
To test some rules locally, there is a test application [in the playground folder](./playground/). It is a vanilla Rails 6 application with your local `gitlab-styles` included, and it is used to test RuboCop rules. You can add code in it (preferably RuboCop offenses) and run the following command to test the RuboCop policy we setup:
|
|
84
|
-
|
|
85
|
-
```shell
|
|
86
|
-
cd playground
|
|
87
|
-
bundle install
|
|
88
|
-
bundle exec rubocop -c .rubocop.yml
|
|
89
|
-
```
|
|
90
|
-
|
|
91
102
|
### Activate lefthook locally
|
|
92
103
|
|
|
93
104
|
```shell
|