rubocop-github 0.16.2 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/STYLEGUIDE.md +14 -15
  3. metadata +28 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20ebeaa5b28b3bd9c71165db189848826a85b99e02a0a94bdefb0d0fdcd0613b
4
- data.tar.gz: 380eb924e8f04d7c2b0cbabec3c6812cd02486646b4bdb00b7fcb7f17ac153c7
3
+ metadata.gz: 0fd87ba9b81dbf0489ef9f8bdddfdc7ad832c7735e4376851165a03369a4493d
4
+ data.tar.gz: 294732c21b2ac89bde8bc654854d659293b7347ca478013e2eeeda8be3b92c4d
5
5
  SHA512:
6
- metadata.gz: 597c2e3594b4bacf764a1fca6d1cbab7336b2634a6d5375305c4aeb479f9c4eb0e21796f1a372dd21013374ae24fd194fba54262c1e84cf5a19bedd97bfadc0d
7
- data.tar.gz: '008078b1e9e5d737cbe459c64772a854e2c00b863fbd766be4d2e73698e2606ebb32e1fc1e36926b14182d3296785802cdc3f98895c59dfd79b6d27f3b144004'
6
+ metadata.gz: 75eca6f6d9a4c688a24f57f6b282d8a7515e7408db7c403ae0c3acdcd677d9cbb6acaa0713c55f8544baed002a077a1bcb3f2a4efd24d9118b720b7175d84a2c
7
+ data.tar.gz: 4770a141ce649d7bb034a9071db481a52858461672804e63ba62ea928072e0094177630d747a40b50ec017dafb323b5e6f4d4249d2e4ab543a20ebd5c53cfb14
data/STYLEGUIDE.md CHANGED
@@ -308,44 +308,43 @@ end
308
308
  Use the Ruby 1.9 syntax for hash literals when all the keys are symbols:
309
309
 
310
310
  ``` ruby
311
- # good
312
- user = {
313
- login: "defunkt",
314
- name: "Chris Wanstrath"
315
- }
316
-
317
311
  # bad
318
312
  user = {
319
313
  :login => "defunkt",
320
314
  :name => "Chris Wanstrath"
321
315
  }
322
316
 
317
+ # good
318
+ user = {
319
+ login: "defunkt",
320
+ name: "Chris Wanstrath"
321
+ }
323
322
  ```
324
323
 
325
324
  Use the 1.9 syntax when calling a method with Hash options arguments or named arguments:
326
325
 
327
326
  ``` ruby
328
- # good
329
- user = User.create(login: "jane")
330
- link_to("Account", controller: "users", action: "show", id: user)
331
-
332
327
  # bad
333
328
  user = User.create(:login => "jane")
334
329
  link_to("Account", :controller => "users", :action => "show", :id => user)
330
+
331
+ # good
332
+ user = User.create(login: "jane")
333
+ link_to("Account", controller: "users", action: "show", id: user)
335
334
  ```
336
335
 
337
336
  If you have a hash with mixed key types, use the legacy hashrocket style to avoid mixing styles within the same hash:
338
337
 
339
338
  ``` ruby
340
- # good
339
+ # bad
341
340
  hsh = {
342
- :user_id => 55,
341
+ user_id: 55,
343
342
  "followers-count" => 1000
344
343
  }
345
344
 
346
- # bad
345
+ # good
347
346
  hsh = {
348
- user_id: 55,
347
+ :user_id => 55,
349
348
  "followers-count" => 1000
350
349
  }
351
350
  ```
@@ -371,7 +370,7 @@ def remove_member(user, skip_membership_check: false)
371
370
  end
372
371
 
373
372
  # Elsewhere, now with more clarity:
374
- remove_member user, skip_membership_check: true
373
+ remove_member(user, skip_membership_check: true)
375
374
  ```
376
375
 
377
376
  ## Naming
metadata CHANGED
@@ -1,99 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-24 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<="
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.13.0
19
+ version: '0'
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: 1.13.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "<="
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.11.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "<="
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.11.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "<="
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.7.1
47
+ version: '0'
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: 2.7.1
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: actionview
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.0'
61
+ version: '6.1'
62
62
  type: :development
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: '5.0'
68
+ version: '6.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '5.14'
75
+ version: '0'
76
76
  type: :development
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: '5.14'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '12.0'
89
+ version: '0'
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: '12.0'
96
+ version: '0'
97
97
  description: 'Code style checking for GitHub Ruby repositories '
98
98
  email: engineering@github.com
99
99
  executables: []
@@ -131,7 +131,7 @@ homepage: https://github.com/github/rubocop-github
131
131
  licenses:
132
132
  - MIT
133
133
  metadata: {}
134
- post_install_message:
134
+ post_install_message:
135
135
  rdoc_options: []
136
136
  require_paths:
137
137
  - lib
@@ -146,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.0.3
150
- signing_key:
149
+ rubygems_version: 3.1.6
150
+ signing_key:
151
151
  specification_version: 4
152
152
  summary: RuboCop GitHub
153
153
  test_files: []