rubocop-standard 5.2.1 → 7.0.1

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 -51
  4. metadata +26 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 371f8db7255a55a9068f8cc983204d4e8d3a267c4856f002406eae697d9b1913
4
- data.tar.gz: a4e1ba87770c36cb967b3f90c047062cc57e57db6ead08a74a985b68c677ad14
3
+ metadata.gz: 31c77761481578289313b85ec66d6835bd9a92ac0aa16ad9596ec9b25f2bcebe
4
+ data.tar.gz: 71216b095dca3db1f5cd89dd4bf180c2a64b7eb5ad81c060f4ba88d937c8ac61
5
5
  SHA512:
6
- metadata.gz: 5147f494e32c7953f25bfeb234e77e72d5bb84acab9cab867062c585c634ede0d007fab63b8e1dfeb42928cd82bbdcdf649573107b818bfcd565630f8687b053
7
- data.tar.gz: cf608db3684b6f3feb8dcb1705d0b57994f5fb40e198ed07dbc7c7021e9c41acc11a12cff066dd60a04960b40d249781b8cad49f3bdeaff9eaf06ff47969f398
6
+ metadata.gz: 0d17ad24a939721ff9e20119e5b886291ac7bc723a454954d8504e4afe88322ba6d09709e5ee920c706d9e9d3247171df1cd51d7f0b6215f61b97dc64e856a08
7
+ data.tar.gz: b601dc5c0431963f19fb20ee584d980207b36f0f2da79d8fd71287784116eaba36da7fa86c770be2ae659d6935362ab89cafc37d6cbe777833f3e19a3f683112
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,62 +1,18 @@
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
13
  NewCops: enable
7
14
  Exclude:
8
15
  - bin/**/*
9
- - db/schema.rb
10
- - db/migrate/*.rb
11
16
  - node_modules/**/*
12
17
  - tmp/**/*
13
18
  - vendor/**/*
14
-
15
- Layout/LineLength:
16
- Enabled: false
17
-
18
- Metrics/AbcSize:
19
- Enabled: false
20
-
21
- Metrics/BlockLength:
22
- Enabled: false
23
-
24
- Metrics/BlockNesting:
25
- Enabled: false
26
-
27
- Metrics/ClassLength:
28
- Enabled: false
29
-
30
- Metrics/CyclomaticComplexity:
31
- Enabled: false
32
-
33
- Metrics/MethodLength:
34
- Enabled: false
35
-
36
- Metrics/ModuleLength:
37
- Enabled: false
38
-
39
- Metrics/ParameterLists:
40
- Enabled: false
41
-
42
- Metrics/PerceivedComplexity:
43
- Enabled: false
44
-
45
- Rake/Desc:
46
- Enabled: false
47
-
48
- Style/AccessModifierDeclarations:
49
- Enabled: false
50
-
51
- Style/ClassAndModuleChildren:
52
- Enabled: false
53
-
54
- Style/Documentation:
55
- Enabled: false
56
-
57
- Style/HashSyntax:
58
- Enabled: false
59
-
60
- Style/StringLiterals:
61
- Enabled: true
62
- EnforcedStyle: single_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: 5.2.1
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-26 00:00:00.000000000 Z
11
+ date: 2022-05-19 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: []
@@ -110,7 +124,8 @@ files:
110
124
  homepage: https://github.com/gjtorikian/rubocop-standard
111
125
  licenses:
112
126
  - MIT
113
- metadata: {}
127
+ metadata:
128
+ rubygems_mfa_required: 'true'
114
129
  post_install_message:
115
130
  rdoc_options: []
116
131
  require_paths:
@@ -119,15 +134,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
134
  requirements:
120
135
  - - ">="
121
136
  - !ruby/object:Gem::Version
122
- version: '0'
137
+ version: '3.0'
138
+ - - "<"
139
+ - !ruby/object:Gem::Version
140
+ version: 4.0.0
123
141
  required_rubygems_version: !ruby/object:Gem::Requirement
124
142
  requirements:
125
143
  - - ">="
126
144
  - !ruby/object:Gem::Version
127
145
  version: '0'
128
146
  requirements: []
129
- rubygems_version: 3.2.33
147
+ rubygems_version: 3.3.13
130
148
  signing_key:
131
149
  specification_version: 4
132
- summary: RuboCop Standard
150
+ summary: Enhanced RuboCop configurations
133
151
  test_files: []