rubocop-standard 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -7
  3. data/config/default.yml +7 -53
  4. metadata +21 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '099eab21525ca0822cc7cfe85e4514e42de76769a6f70a7c5e2416269dbf9ef3'
4
- data.tar.gz: 6e0ad2906a011040efb70e122ba81be566b25619a0744007b05b63e74ed7cb1d
3
+ metadata.gz: d5c4228445c338acf1cb6e0bef29bb826cf483bcc53361b7395995f686ad8a8a
4
+ data.tar.gz: 4fb56822d6bd966f58040cba9df213345454a78d48a45f533dd4ce3c348fc8d7
5
5
  SHA512:
6
- metadata.gz: aaec4b0610312d5936f1a4f622deb55bb83c5cbb4aac9bb5381294856f89fe643a1a9a5e93aea778201067306d36697ca4a374a32d19b2b9eda2338ca8f2b75a
7
- data.tar.gz: d1950ca03208e5aafc1de796376dcdba645d6979e461f53996956f159424406b43984d063d058e0f385affc08945e1c30a6c1c36f874c06f6d8eb5eaa3dfc8f7
6
+ metadata.gz: 835548a962fba0ecf14e8e1c571a349f967092d8ccfa3561fd105d5398ebdc20c269eba969d6019c6d3689fb7c2fd3020ef3a16b9e2a26a5b574aafe69c57330
7
+ data.tar.gz: 0b3185f6a7ced728f9b081be86fb636496a46cfe54b98255f27acf29c64c6634a651ae94baf1e33dae5891f192deaf9b9d5f657ecacc968a9fef527c31318439
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # RuboCop Standard
2
2
 
3
- This repository enables all the recommended RuboCop configurations, but disables the overly aggressive ones.
3
+ This repository enables all of [Shopify's recommended RuboCop configurations](https://github.com/Shopify/ruby-style-guide), plus some extra ones I've found useful for my projects, like:
4
4
 
5
- ## What's "overly aggressive"?
6
-
7
- You know, all the ones about line length, method complexity, requiring documentation, etc.
5
+ - [`rubocop-minitest`](https://github.com/rubocop/rubocop-minitest)
6
+ - [`rubocop-performance`](https://github.com/rubocop/rubocop-performance)
7
+ - [`rubocop-rails`](https://github.com/rubocop/rubocop-rails)
8
+ - [`rubocop-rake`](https://github.com/rubocop/rubocop-rake)
8
9
 
9
10
  ## Installation
10
11
 
@@ -21,7 +22,7 @@ require:
21
22
  - rubocop-standard
22
23
  ```
23
24
 
24
- ## How to use it?
25
+ ## How to configure
25
26
 
26
27
  In your .rubocop.yml file, just write:
27
28
 
@@ -31,9 +32,9 @@ inherit_gem:
31
32
  - config/default.yml
32
33
  ```
33
34
 
34
- By default, `rubocop-performance` and `rubocop-rake` rules are enforced, because it's assumed that every project cares about these two sets.
35
+ 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.
35
36
 
36
- This gem also has `rubocop-minitest` and `rubocop-rails` as dependencies, so you can simply add those in when you care about them:
37
+ This gem also has `rubocop-minitest` and `rubocop-rails` as dependencies, so you can simply add those in for whichever project needs them:
37
38
 
38
39
  ```yaml
39
40
  inherit_gem:
@@ -42,3 +43,16 @@ inherit_gem:
42
43
  - config/minitest.yml
43
44
  - config/rails.yml
44
45
  ```
46
+
47
+ ## Other features
48
+
49
+ This project also excludes directories that are ancillary to the core lib code:
50
+
51
+ ```yaml
52
+ AllCops:
53
+ Exclude:
54
+ - bin/**/*
55
+ - node_modules/**/*
56
+ - tmp/**/*
57
+ - vendor/**/*
58
+ ```
data/config/default.yml CHANGED
@@ -1,63 +1,17 @@
1
+ inherit_gem:
2
+ rubocop-shopify: rubocop.yml
3
+
1
4
  require:
2
5
  - rubocop-performance
3
6
  - rubocop-rake
4
7
 
8
+ inherit_mode:
9
+ merge:
10
+ - Exclude
11
+
5
12
  AllCops:
6
- DisplayCopNames: true
7
- DisplayStyleGuide: true
8
- NewCops: enable
9
13
  Exclude:
10
14
  - bin/**/*
11
- - db/schema.rb
12
- - db/migrate/*.rb
13
15
  - node_modules/**/*
14
16
  - tmp/**/*
15
17
  - vendor/**/*
16
-
17
- Layout/LineLength:
18
- Enabled: false
19
-
20
- Metrics/AbcSize:
21
- Enabled: false
22
-
23
- Metrics/BlockLength:
24
- Enabled: false
25
-
26
- Metrics/BlockNesting:
27
- Enabled: false
28
-
29
- Metrics/ClassLength:
30
- Enabled: false
31
-
32
- Metrics/CyclomaticComplexity:
33
- Enabled: false
34
-
35
- Metrics/MethodLength:
36
- Enabled: false
37
-
38
- Metrics/ModuleLength:
39
- Enabled: false
40
-
41
- Metrics/ParameterLists:
42
- Enabled: false
43
-
44
- Metrics/PerceivedComplexity:
45
- Enabled: false
46
-
47
- Rake/Desc:
48
- Enabled: false
49
-
50
- Style/AccessModifierDeclarations:
51
- Enabled: false
52
-
53
- Style/ClassAndModuleChildren:
54
- Enabled: false
55
-
56
- Style/Documentation:
57
- Enabled: false
58
-
59
- Style/HashSyntax:
60
- Enabled: false
61
-
62
- Style/StringLiterals:
63
- EnforcedStyle: double_quotes
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: 6.0.0
4
+ version: 7.0.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: 2022-04-23 00:00:00.000000000 Z
11
+ date: 2022-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-shopify
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -94,8 +108,8 @@ dependencies:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
- description: Enables all the RuboCop recommendations (with the overly aggressive ones
98
- disabled).
111
+ description: Enables Shopify’s Ruby Style Guide recommendations (and bundles them
112
+ with other niceties, like `rubocop-{minitest,performance,rails,rake}`).
99
113
  email:
100
114
  - gjtorikian@gmail.com
101
115
  executables: []
@@ -120,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
134
  requirements:
121
135
  - - ">="
122
136
  - !ruby/object:Gem::Version
123
- version: 2.7.0
137
+ version: '3.0'
124
138
  - - "<"
125
139
  - !ruby/object:Gem::Version
126
140
  version: 4.0.0
@@ -130,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  requirements: []
133
- rubygems_version: 3.3.7
147
+ rubygems_version: 3.3.13
134
148
  signing_key:
135
149
  specification_version: 4
136
- summary: RuboCop Standard
150
+ summary: Enhanced RuboCop configurations
137
151
  test_files: []