rubocop-standard 7.1.0 → 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 +17 -4
- data/config/default.yml +3 -0
- data/config/rails.yml +1 -0
- metadata +27 -5
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
|
```
|
@@ -38,7 +39,8 @@ This gem also has the following Rubocop tools as dependencies:
|
|
38
39
|
|
39
40
|
- `rubocop-minitest`
|
40
41
|
- `rubocop-rails`
|
41
|
-
- `rubocop-
|
42
|
+
- `rubocop-rails-accessibility`
|
43
|
+
- `rubocop-sorbet`
|
42
44
|
|
43
45
|
You can add those in for whichever project needs them:
|
44
46
|
|
@@ -47,7 +49,7 @@ inherit_gem:
|
|
47
49
|
rubocop-standard:
|
48
50
|
- config/default.yml
|
49
51
|
- config/minitest.yml
|
50
|
-
- config/rails.yml
|
52
|
+
- config/rails.yml # includes rails-accessibility
|
51
53
|
```
|
52
54
|
|
53
55
|
## Other features
|
@@ -64,3 +66,14 @@ AllCops:
|
|
64
66
|
- tmp/**/*
|
65
67
|
- vendor/**/*
|
66
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
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.
|
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,8 +69,9 @@ dependencies:
|
|
66
69
|
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '0'
|
72
|
+
force_ruby_platform: false
|
69
73
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop-
|
74
|
+
name: rubocop-rails-accessibility
|
71
75
|
requirement: !ruby/object:Gem::Requirement
|
72
76
|
requirements:
|
73
77
|
- - ">="
|
@@ -80,8 +84,9 @@ dependencies:
|
|
80
84
|
- - ">="
|
81
85
|
- !ruby/object:Gem::Version
|
82
86
|
version: '0'
|
87
|
+
force_ruby_platform: false
|
83
88
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-
|
89
|
+
name: rubocop-rake
|
85
90
|
requirement: !ruby/object:Gem::Requirement
|
86
91
|
requirements:
|
87
92
|
- - ">="
|
@@ -94,6 +99,7 @@ dependencies:
|
|
94
99
|
- - ">="
|
95
100
|
- !ruby/object:Gem::Version
|
96
101
|
version: '0'
|
102
|
+
force_ruby_platform: false
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: rubocop-shopify
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +114,22 @@ dependencies:
|
|
108
114
|
- - ">="
|
109
115
|
- !ruby/object:Gem::Version
|
110
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
|
111
133
|
- !ruby/object:Gem::Dependency
|
112
134
|
name: rake
|
113
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
181
|
- !ruby/object:Gem::Version
|
160
182
|
version: '0'
|
161
183
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.5.9
|
163
185
|
signing_key:
|
164
186
|
specification_version: 4
|
165
187
|
summary: Enhanced RuboCop configurations
|