theforeman-rubocop 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -7
- data/default.yml +2 -1
- data/lenient.yml +3 -0
- data/lib/theforeman/rubocop/version.rb +1 -1
- data/minitest.yml +2 -0
- data/rules/style.yml +7 -0
- data/rules/{style_permissive.yml → style_lenient.yml} +0 -0
- data/{all.yml → strict.yml} +0 -0
- data/strictest.yml +5 -0
- metadata +8 -6
- data/edge.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbbe548f51498820c292bf44965d764dbdab91c1d193a829231d6249bf7e7daf
|
4
|
+
data.tar.gz: 84927a1cfba2eee92b2fbc55baace5559d66c97188e45ed2354c1e7ffe6c1a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7d2faf2f935f170891ac00a820767d7052191b094bd4a2533fd24c84c3f0fc46907a74d62a6f7db6541fa970123bbb274ef52ee492ca248eba2ac7db83fed2f
|
7
|
+
data.tar.gz: 127c9be12615fcac2b0c8995364f86e9f7df6c012a1fa7c2d051dcfff55d7382fc630b786cc68218f34354329c8a1604bd0abb1814ff5f0fce77347fe047e353
|
data/README.md
CHANGED
@@ -21,26 +21,39 @@ gem 'theforeman-rubocop', '~> 0.0.4'
|
|
21
21
|
|
22
22
|
And configure in the `.rubocop.yml`.
|
23
23
|
|
24
|
-
### Easiest config -
|
24
|
+
### Easiest config - all opinionated Cops `strict`
|
25
25
|
|
26
26
|
```yaml
|
27
27
|
inherit_gem:
|
28
28
|
theforeman-rubocop:
|
29
|
-
-
|
29
|
+
- strict.yml
|
30
30
|
```
|
31
31
|
|
32
|
-
### Basic style
|
32
|
+
### Basic style - `default`, performance and rails cops
|
33
33
|
```yaml
|
34
34
|
inherit_gem:
|
35
35
|
theforeman-rubocop:
|
36
|
-
-
|
36
|
+
- default.yml
|
37
37
|
```
|
38
38
|
|
39
|
-
###
|
39
|
+
### Not intrusive style - `lenient`
|
40
|
+
It is similar to default, but has some not as important cops disabled.
|
41
|
+
See `rules/style_lenient.yml` for disabled cops.
|
42
|
+
|
40
43
|
```yaml
|
41
44
|
inherit_gem:
|
42
45
|
theforeman-rubocop:
|
43
|
-
-
|
46
|
+
- lenient.yml
|
47
|
+
```
|
48
|
+
|
49
|
+
### All opinionated cops with new ones - `strictest`
|
50
|
+
If you want to closely follow what RuboCop introduces in its new versions, use this level.
|
51
|
+
It is the same as `strict`, but enables the newly introduced cops.
|
52
|
+
|
53
|
+
```yaml
|
54
|
+
inherit_gem:
|
55
|
+
theforeman-rubocop:
|
56
|
+
- strictest.yml
|
44
57
|
```
|
45
58
|
|
46
59
|
### Choose just some cops
|
@@ -51,11 +64,14 @@ Cops are splited in categories for your convenience, so you can opt-out some cop
|
|
51
64
|
```yaml
|
52
65
|
inherit_gem:
|
53
66
|
theforeman-rubocop:
|
54
|
-
- rules/
|
67
|
+
- rules/base.yml
|
55
68
|
- rules/ruby_target.yml
|
69
|
+
- rules/style.yml
|
70
|
+
- rules/metrics.yml
|
56
71
|
- rules/performance.yml
|
57
72
|
- rules/rails.yml
|
58
73
|
- rules/minitest.yml
|
74
|
+
- rules/style_lenient.yml
|
59
75
|
|
60
76
|
AllCops:
|
61
77
|
NewCops: disable
|
data/default.yml
CHANGED
data/lenient.yml
ADDED
data/minitest.yml
ADDED
data/rules/style.yml
CHANGED
@@ -5,6 +5,9 @@ Layout/ArgumentAlignment:
|
|
5
5
|
EnforcedStyle: with_fixed_indentation
|
6
6
|
IndentationWidth: 2
|
7
7
|
|
8
|
+
Layout/FirstArgumentIndentation:
|
9
|
+
EnforcedStyle: consistent
|
10
|
+
|
8
11
|
Style/Alias:
|
9
12
|
EnforcedStyle: prefer_alias_method
|
10
13
|
|
@@ -22,6 +25,10 @@ Style/Documentation:
|
|
22
25
|
Style/EmptyMethod:
|
23
26
|
EnforcedStyle: expanded
|
24
27
|
|
28
|
+
# Enforce ruby19 style
|
29
|
+
Style/HashSyntax:
|
30
|
+
EnforcedStyle: ruby19_no_mixed_keys
|
31
|
+
|
25
32
|
Style/TernaryParentheses:
|
26
33
|
EnforcedStyle: require_parentheses_when_complex
|
27
34
|
|
File without changes
|
data/{all.yml → strict.yml}
RENAMED
File without changes
|
data/strictest.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theforeman-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -132,10 +132,10 @@ files:
|
|
132
132
|
- ".github/workflows/gem-push.yml"
|
133
133
|
- AUTHORS
|
134
134
|
- README.md
|
135
|
-
- all.yml
|
136
135
|
- default.yml
|
137
|
-
-
|
136
|
+
- lenient.yml
|
138
137
|
- lib/theforeman/rubocop/version.rb
|
138
|
+
- minitest.yml
|
139
139
|
- rules/base.yml
|
140
140
|
- rules/metrics.yml
|
141
141
|
- rules/minitest.yml
|
@@ -143,7 +143,9 @@ files:
|
|
143
143
|
- rules/rails.yml
|
144
144
|
- rules/ruby_target.yml
|
145
145
|
- rules/style.yml
|
146
|
-
- rules/
|
146
|
+
- rules/style_lenient.yml
|
147
|
+
- strict.yml
|
148
|
+
- strictest.yml
|
147
149
|
- theforeman-rubocop.gemspec
|
148
150
|
homepage: https://github.com/theforeman/theforeman-rubocop
|
149
151
|
licenses: []
|
@@ -163,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
165
|
- !ruby/object:Gem::Version
|
164
166
|
version: '0'
|
165
167
|
requirements: []
|
166
|
-
rubygems_version: 3.1.
|
168
|
+
rubygems_version: 3.1.4
|
167
169
|
signing_key:
|
168
170
|
specification_version: 4
|
169
171
|
summary: Shared Rubocop configuration for theforeman.org family of projects.
|