theforeman-rubocop 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dec7eda262ed8ce64a081f73d79ab7ca5dbf8ecfe3c764603cd354ed876f2608
4
- data.tar.gz: c665678918e1ff4447bb680602de6969efabcf670a4cea6bb96633180330b777
3
+ metadata.gz: bbbe548f51498820c292bf44965d764dbdab91c1d193a829231d6249bf7e7daf
4
+ data.tar.gz: 84927a1cfba2eee92b2fbc55baace5559d66c97188e45ed2354c1e7ffe6c1a8b
5
5
  SHA512:
6
- metadata.gz: 614d380c95d209a784b6e4def72fa6d75e5eed9532f0274f07d736d965facf05fe3a539d16f92b9849aa3c7b51881260dda07a13e2061da6308f2f0dcfcc02df
7
- data.tar.gz: cc33b094bb9d3dea816fd9b8d8902536d618d0281d7797aafd5eb7726ff37534ecf11f162d5535cac14a22d63c6293721f78392a47654d208060b40f9163ca4e
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 - get all
24
+ ### Easiest config - all opinionated Cops `strict`
25
25
 
26
26
  ```yaml
27
27
  inherit_gem:
28
28
  theforeman-rubocop:
29
- - all.yml
29
+ - strict.yml
30
30
  ```
31
31
 
32
- ### Basic style and performance cops
32
+ ### Basic style - `default`, performance and rails cops
33
33
  ```yaml
34
34
  inherit_gem:
35
35
  theforeman-rubocop:
36
- - all.yml
36
+ - default.yml
37
37
  ```
38
38
 
39
- ### All cops, including newly introduced ones
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
- - edge.yml
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/style.yml
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
@@ -1,8 +1,9 @@
1
1
  inherit_from:
2
2
  - rules/base.yml
3
+ - rules/ruby_target.yml
3
4
  - rules/style.yml
4
- - rules/style_permissive.yml
5
5
  - rules/performance.yml
6
+ - rules/rails.yml
6
7
 
7
8
  AllCops:
8
9
  NewCops: disable
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - default.yml
3
+ - rules/style_lenient.yml
@@ -1,5 +1,5 @@
1
1
  module Theforeman
2
2
  module Rubocop
3
- VERSION = '0.0.4'.freeze
3
+ VERSION = '0.0.6'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - rules/minitest.yml
@@ -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
@@ -0,0 +1,5 @@
1
+ inherit_from:
2
+ - strict.yml
3
+
4
+ AllCops:
5
+ NewCops: enable
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
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-10-08 00:00:00.000000000 Z
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
- - edge.yml
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/style_permissive.yml
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.2
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.
data/edge.yml DELETED
@@ -1,9 +0,0 @@
1
- inherit_from:
2
- - all.yml
3
-
4
- AllCops:
5
- NewCops: enable
6
-
7
- # Enforce ruby19 style
8
- Style/HashSyntax:
9
- EnforcedStyle: ruby19_no_mixed_keys