rubocop-standard 7.0.5 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -4
- data/config/default.yml +4 -0
- data/config/rails.yml +1 -0
- data/config/sorbet.yml +2 -0
- metadata +40 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ff55d8a3bbc558a4a84bf2769933651c4ebf8ba72fa6825b1317dd01dd4944
|
4
|
+
data.tar.gz: a200e61f4b740ef0853444aa359faea305739f66ae1aa8952a8da050a5b44393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b149603391934e8b4343678dabc2b8d5f495c56b5d9a7b7e013850f272f70f8d928d57a2ddd00a21de3f8cb745b6478276451be0dd1dda0515a7eef070009d
|
7
|
+
data.tar.gz: 695c87663a12a5d072db7f78f7bdb70c6f39ac6b54cc002cfc98da7725de2a613196b52ad1e9cf3f82d2ae13122d048aaafaeda5ab0cf2136aa43493ce3e619c
|
data/README.md
CHANGED
@@ -5,19 +5,20 @@ This repository enables all of [Shopify's recommended RuboCop configurations](ht
|
|
5
5
|
- [`rubocop-minitest`](https://github.com/rubocop/rubocop-minitest)
|
6
6
|
- [`rubocop-performance`](https://github.com/rubocop/rubocop-performance)
|
7
7
|
- [`rubocop-rails`](https://github.com/rubocop/rubocop-rails)
|
8
|
+
- [`rubocop-rails-accessibility`](https://github.com/github/rubocop-rails-accessibility)
|
8
9
|
- [`rubocop-rake`](https://github.com/rubocop/rubocop-rake)
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
12
13
|
### Gemfile
|
13
14
|
|
14
|
-
```
|
15
|
+
```ruby
|
15
16
|
gem "rubocop-standard"
|
16
17
|
```
|
17
18
|
|
18
19
|
### .rubocop.yml
|
19
20
|
|
20
|
-
```
|
21
|
+
```yaml
|
21
22
|
require:
|
22
23
|
- rubocop-standard
|
23
24
|
```
|
@@ -34,14 +35,21 @@ inherit_gem:
|
|
34
35
|
|
35
36
|
By default, `rubocop-performance` and `rubocop-rake` rules are enforced, because it's assumed that every Ruby project cares about these two sets. Why? Well, everyone should care about performance, and every project uses Rake (and Bundler) as de facto tools.
|
36
37
|
|
37
|
-
This gem also has
|
38
|
+
This gem also has the following Rubocop tools as dependencies:
|
39
|
+
|
40
|
+
- `rubocop-minitest`
|
41
|
+
- `rubocop-rails`
|
42
|
+
- `rubocop-rails-accessibility`
|
43
|
+
- `rubocop-sorbet`
|
44
|
+
|
45
|
+
You can add those in for whichever project needs them:
|
38
46
|
|
39
47
|
```yaml
|
40
48
|
inherit_gem:
|
41
49
|
rubocop-standard:
|
42
50
|
- config/default.yml
|
43
51
|
- config/minitest.yml
|
44
|
-
- config/rails.yml
|
52
|
+
- config/rails.yml # includes rails-accessibility
|
45
53
|
```
|
46
54
|
|
47
55
|
## Other features
|
@@ -52,7 +60,20 @@ This project also excludes directories that are ancillary to the core lib code:
|
|
52
60
|
AllCops:
|
53
61
|
Exclude:
|
54
62
|
- bin/**/*
|
63
|
+
- db/**/*
|
55
64
|
- node_modules/**/*
|
65
|
+
- sorbet/**/*
|
56
66
|
- tmp/**/*
|
57
67
|
- vendor/**/*
|
58
68
|
```
|
69
|
+
|
70
|
+
Rails environments also includes `staging`:
|
71
|
+
|
72
|
+
```yml
|
73
|
+
Rails/UnknownEnv:
|
74
|
+
Environments:
|
75
|
+
- development
|
76
|
+
- test
|
77
|
+
- staging
|
78
|
+
- production
|
79
|
+
```
|
data/config/default.yml
CHANGED
data/config/rails.yml
CHANGED
data/config/sorbet.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
force_ruby_platform: false
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rubocop-minitest
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +39,7 @@ dependencies:
|
|
38
39
|
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '0'
|
42
|
+
force_ruby_platform: false
|
41
43
|
- !ruby/object:Gem::Dependency
|
42
44
|
name: rubocop-performance
|
43
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +54,7 @@ dependencies:
|
|
52
54
|
- - ">="
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
version: '0'
|
57
|
+
force_ruby_platform: false
|
55
58
|
- !ruby/object:Gem::Dependency
|
56
59
|
name: rubocop-rails
|
57
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +69,22 @@ dependencies:
|
|
66
69
|
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '0'
|
72
|
+
force_ruby_platform: false
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rubocop-rails-accessibility
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
force_ruby_platform: false
|
69
88
|
- !ruby/object:Gem::Dependency
|
70
89
|
name: rubocop-rake
|
71
90
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +99,7 @@ dependencies:
|
|
80
99
|
- - ">="
|
81
100
|
- !ruby/object:Gem::Version
|
82
101
|
version: '0'
|
102
|
+
force_ruby_platform: false
|
83
103
|
- !ruby/object:Gem::Dependency
|
84
104
|
name: rubocop-shopify
|
85
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +114,22 @@ dependencies:
|
|
94
114
|
- - ">="
|
95
115
|
- !ruby/object:Gem::Version
|
96
116
|
version: '0'
|
117
|
+
force_ruby_platform: false
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rubocop-sorbet
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
type: :runtime
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
force_ruby_platform: false
|
97
133
|
- !ruby/object:Gem::Dependency
|
98
134
|
name: rake
|
99
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,6 +157,7 @@ files:
|
|
121
157
|
- config/default.yml
|
122
158
|
- config/minitest.yml
|
123
159
|
- config/rails.yml
|
160
|
+
- config/sorbet.yml
|
124
161
|
homepage: https://github.com/gjtorikian/rubocop-standard
|
125
162
|
licenses:
|
126
163
|
- MIT
|
@@ -144,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
181
|
- !ruby/object:Gem::Version
|
145
182
|
version: '0'
|
146
183
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.5.9
|
148
185
|
signing_key:
|
149
186
|
specification_version: 4
|
150
187
|
summary: Enhanced RuboCop configurations
|