rubocop-standard 5.0.2 → 5.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 +22 -0
- data/config/default.yml +8 -1
- data/config/minitest.yml +3 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777618c757eb7018d5ce406c7e50a76359aa0ed4f3357c7f3aad3854cce38608
|
4
|
+
data.tar.gz: 2cae49b0f7bef3cbd59ec3698eebee3e250c2e8147d5f5b887e229a1b7a877b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c8a2183d2db801d59f920e76dae2a67a21f3f5d9aa9c5b81276a11a3a934a14e13b017a492fb4f28366cf019d78de11d492880ee715daa35e609dfd45a7c3d
|
7
|
+
data.tar.gz: 323ea1afecdb7b1e4766987e26c483a6a3e561ef7670e265f6c0ee8de878fe4efec20900b732b3810614e1cd539ce48f78ce431ff8826521606467f473691fc0
|
data/README.md
CHANGED
@@ -20,3 +20,25 @@ gem "rubocop-standard"
|
|
20
20
|
require:
|
21
21
|
- rubocop-standard
|
22
22
|
```
|
23
|
+
|
24
|
+
## How to use it?
|
25
|
+
|
26
|
+
In your .rubocop.yml file, just write:
|
27
|
+
|
28
|
+
```yaml
|
29
|
+
inherit_gem:
|
30
|
+
rubocop-standard:
|
31
|
+
- config/default.yml
|
32
|
+
```
|
33
|
+
|
34
|
+
By default, `rubocop-performance` and `rubocop-rake` rules are enforced, because it's assumed that every project cares about these two sets.
|
35
|
+
|
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
|
+
|
38
|
+
```yaml
|
39
|
+
inherit_gem:
|
40
|
+
rubocop-standard:
|
41
|
+
- config/default.yml
|
42
|
+
- config/minitest.yml
|
43
|
+
- config/rails.yml
|
44
|
+
```
|
data/config/default.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-performance
|
3
|
+
- rubocop-rake
|
3
4
|
|
4
5
|
AllCops:
|
5
6
|
NewCops: enable
|
@@ -41,15 +42,21 @@ Metrics/ParameterLists:
|
|
41
42
|
Metrics/PerceivedComplexity:
|
42
43
|
Enabled: false
|
43
44
|
|
44
|
-
|
45
|
+
Rake/Desc:
|
45
46
|
Enabled: false
|
46
47
|
|
47
48
|
Style/AccessModifierDeclarations:
|
48
49
|
Enabled: false
|
49
50
|
|
51
|
+
Style/ClassAndModuleChildren:
|
52
|
+
Enabled: false
|
53
|
+
|
50
54
|
Style/Documentation:
|
51
55
|
Enabled: false
|
52
56
|
|
57
|
+
Style/HashSyntax:
|
58
|
+
Enabled: false
|
59
|
+
|
53
60
|
Style/StringLiterals:
|
54
61
|
Enabled: true
|
55
62
|
EnforcedStyle: single_quotes
|
data/config/minitest.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: 5.0
|
4
|
+
version: 5.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: 2021-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
126
|
- !ruby/object:Gem::Version
|
113
127
|
version: '0'
|
114
128
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
129
|
+
rubygems_version: 3.2.33
|
116
130
|
signing_key:
|
117
131
|
specification_version: 4
|
118
132
|
summary: RuboCop Standard
|