ruboconf 1.1.0 → 1.4.0

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: 392a56931f9dc513a328a01047697155082ce4753658950b3e6feb3198a23d44
4
- data.tar.gz: 19f56cf29387716bb04ae815e761d3ee3990c9d3de2e13ebf8ac61c845f2e710
3
+ metadata.gz: 622bd16a3f5f6792227219315bf7b11be7bc4a7a69777df1579461c90b1e021f
4
+ data.tar.gz: 747efd31967630506186abe11c8f5fc3ed14262ba7de2009adb84db1c3f12891
5
5
  SHA512:
6
- metadata.gz: b9fad181adb06cee9c41c596d4bb4da13333235f29ce43fe74befdecabd7576e5afc07578b77010e00ca6e1f2b2c85876c8db99318724ef55c36b087f80f97af
7
- data.tar.gz: 3bf0824bd0450b782fd59a827bf0986985a359a2de85ea96c6897256a3c1b453c3397a83893fdad3d72e4049df2aeba8da0b5a6a79db954c879a51947fa51bf2
6
+ metadata.gz: a8679aaae6010149f6e1fb669378ecd7f3af67288dafe0dde13c785b638ad24dcad3cd600e891f1e441059b7ed131294f39d394b1c38dcb3b9d81d3b7e6ef5aa
7
+ data.tar.gz: c324ea02b81fb83bde2926b2256d4c9e45d779a7c464c33272a6172ad408ae232db76c76293b1764b04052db6373849b5ff247c9cac2dbfcad687434b5c08734
data/README.md CHANGED
@@ -4,7 +4,7 @@ Opinionated RuboCop configuration for personal projects.
4
4
 
5
5
  Those configurations are chosen based on my subjective feelings about some cops. I do not plan to accept Pull Requests, besides for objectively better configuration options.
6
6
 
7
- If you want to use RuboCop Rails you might be interested in [ruboconf-rails](https://github.com/richardboehme/ruboconf-rails)
7
+ If you want to use RuboCop Rails you might be interested in [ruboconf-rails](https://github.com/richardboehme/ruboconf-rails).
8
8
 
9
9
  ## Installation
10
10
 
data/cops/gemspec.yml CHANGED
@@ -1,4 +1,4 @@
1
- Gemspec/DateAssignment:
1
+ Gemspec/DeprecatedAttributeAssignment:
2
2
  Enabled: true
3
3
 
4
4
  Gemspec/RequireMFA:
data/cops/layout.yml CHANGED
@@ -24,6 +24,12 @@ Layout/ExtraSpacing:
24
24
  Layout/FirstArgumentIndentation:
25
25
  Enabled: true
26
26
 
27
+ Layout/LineContinuationLeadingSpace:
28
+ Enabled: true
29
+
30
+ Layout/LineContinuationSpacing:
31
+ Enabled: true
32
+
27
33
  Layout/LineEndStringConcatenationIndentation:
28
34
  Enabled: true
29
35
 
data/cops/lint.yml CHANGED
@@ -7,6 +7,9 @@ Lint/AmbiguousOperatorPrecedence:
7
7
  Lint/AmbiguousRange:
8
8
  Enabled: true
9
9
 
10
+ Lint/ConstantOverwrittenInRescue:
11
+ Enabled: true
12
+
10
13
  Lint/DeprecatedConstants:
11
14
  Enabled: true
12
15
 
@@ -34,6 +37,9 @@ Lint/LambdaWithoutLiteralBlock:
34
37
  Lint/NoReturnInBeginEndBlocks:
35
38
  Enabled: true
36
39
 
40
+ Lint/NonAtomicFileOperation:
41
+ Enabled: true
42
+
37
43
  Lint/NumberedParameterAssignment:
38
44
  Enabled: true
39
45
 
@@ -43,6 +49,12 @@ Lint/OrAssignmentToConstant:
43
49
  Lint/RedundantDirGlobSort:
44
50
  Enabled: true
45
51
 
52
+ Lint/RefinementImportMethods:
53
+ Enabled: true
54
+
55
+ Lint/RequireRangeParentheses:
56
+ Enabled: true
57
+
46
58
  Lint/RequireRelativeSelfPath:
47
59
  Enabled: true
48
60
 
data/cops/security.yml CHANGED
@@ -1,2 +1,5 @@
1
+ Security/CompoundHash:
2
+ Enabled: true
3
+
1
4
  Security/IoMethods:
2
5
  Enabled: true
data/cops/style.yml CHANGED
@@ -13,12 +13,21 @@ Style/Documentation:
13
13
  Style/DocumentDynamicEvalDefinition:
14
14
  Enabled: true
15
15
 
16
+ Style/EmptyHeredoc:
17
+ Enabled: true
18
+
16
19
  Style/EmptyMethod:
17
20
  EnforcedStyle: expanded
18
21
 
19
22
  Style/EndlessMethod:
20
23
  Enabled: true
21
24
 
25
+ Style/EnvHome:
26
+ Enabled: true
27
+
28
+ Style/FetchEnvVar:
29
+ Enabled: true
30
+
22
31
  Style/FileRead:
23
32
  Enabled: true
24
33
 
@@ -40,6 +49,9 @@ Style/HashConversion:
40
49
  Style/HashExcept:
41
50
  Enabled: true
42
51
 
52
+ Style/HashSyntax:
53
+ EnforcedShorthandSyntax: either
54
+
43
55
  Style/IfUnlessModifier:
44
56
  Enabled: false
45
57
 
@@ -55,6 +67,9 @@ Style/Lambda:
55
67
  Style/LambdaCall:
56
68
  EnforcedStyle: braces
57
69
 
70
+ Style/MapCompactWithConditionalBlock:
71
+ Enabled: true
72
+
58
73
  Style/MapToHash:
59
74
  Enabled: true
60
75
 
@@ -67,6 +82,9 @@ Style/NegatedIf:
67
82
  Style/NegatedIfElseCondition:
68
83
  Enabled: false
69
84
 
85
+ Style/NestedFileDirname:
86
+ Enabled: true
87
+
70
88
  Style/Next:
71
89
  Enabled: false
72
90
 
@@ -82,6 +100,9 @@ Style/NumberedParametersLimit:
82
100
  Style/NumericLiterals:
83
101
  Enabled: true
84
102
 
103
+ Style/ObjectThen:
104
+ Enabled: true
105
+
85
106
  Style/OpenStructUse:
86
107
  Enabled: true
87
108
 
@@ -106,6 +127,9 @@ Style/RedundantFetchBlock:
106
127
  Style/RedundantFreeze:
107
128
  Enabled: true
108
129
 
130
+ Style/RedundantInitialize:
131
+ Enabled: true
132
+
109
133
  Style/RedundantSelf:
110
134
  Enabled: true
111
135
 
data/ruboconf.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'ruboconf'
5
- spec.version = '1.1.0'
5
+ spec.version = '1.4.0'
6
6
  spec.authors = ['Richard Böhme']
7
7
  spec.email = ['richard.boehme1999@gmail.com']
8
8
 
9
9
  spec.summary = 'Opinionated Rubocop configuration for personal projects.'
10
10
  spec.homepage = 'https://github.com/richardboehme/ruboconf'
11
11
  spec.license = 'MIT'
12
- spec.required_ruby_version = '>= 2.7.0'
12
+ spec.required_ruby_version = '>= 2.6.0'
13
13
 
14
14
  spec.metadata['homepage_uri'] = spec.homepage
15
15
  spec.metadata['source_code_uri'] = 'https://github.com/richardboehme/ruboconf'
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  end
23
23
  end
24
24
 
25
- spec.add_dependency 'rubocop', '~> 1.25.0'
26
- spec.add_dependency 'rubocop-performance', '~> 1.13.2'
25
+ spec.add_dependency 'rubocop', '~> 1.32'
26
+ spec.add_dependency 'rubocop-performance', '~> 1.14'
27
27
  spec.metadata['rubygems_mfa_required'] = 'true'
28
28
  end
data/ruboconf.yml CHANGED
@@ -18,3 +18,4 @@ AllCops:
18
18
  - 'tmp/**/*'
19
19
  - 'vendor/**/*'
20
20
  - '.git/**/*'
21
+ SuggestExtensions: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Böhme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.25.0
19
+ version: '1.32'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.25.0
26
+ version: '1.32'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.13.2
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.13.2
40
+ version: '1.14'
41
41
  description:
42
42
  email:
43
43
  - richard.boehme1999@gmail.com
@@ -77,14 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 2.7.0
80
+ version: 2.6.0
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.3.3
87
+ rubygems_version: 3.3.7
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Opinionated Rubocop configuration for personal projects.