ergomentum_rubocop 0.4.0 → 0.7.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: 8f41172e135a7bb0acaf416a49da1565642cf53ac8466b80072a78254f48c254
4
- data.tar.gz: c8450dc25c98fea7921fe6a5bd4f9bba78df566259bf34b90cb943bc744e54be
3
+ metadata.gz: f914b68579f4a0b4c6b6614f7a1852e3cd6ea362f848db01223194ad7bc4fc19
4
+ data.tar.gz: 834c944576e5cf9a4a8b68db08fe1362488df5993d851f28c0fa3b0933d74379
5
5
  SHA512:
6
- metadata.gz: 3944d26f8082a6c2eb0e6b3eee3a43f69188528455e3e24f00de673a7d2c02f363bd7c32a84b1901130d63e861c57a32c1b78cc57860e701746cda5fc6f19297
7
- data.tar.gz: da44c310543721c09eeb99f94314fbaf3ce3f4444fe12f960caa2e948103eaef6cc6a2681c632b7bdb2a38b23df1525171bdc3c76567cf9bad5755aff4534200
6
+ metadata.gz: 667d5e76e6c6fe1c26b98676d075dfe5be85e162c2d6e730e0e7c4bc65ffd4f31fbfb68461a6331548231456c4836b97292ef920e7f647951145860d35d53b01
7
+ data.tar.gz: b8ccf636b33c36b304246a54093ee4856bf3068730a01565ce64341029ba9da813644295918ce3128637099d8d20906635c66e85780799e8cdc6d821a44bb736
data/README.md CHANGED
@@ -10,20 +10,19 @@ https://circleci.com/gh/ergomentum/ergomentum_rubocop)
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'ergomentum_rubocop'
13
+ gem "ergomentum_rubocop"
14
14
  ```
15
15
 
16
16
  And then execute:
17
17
 
18
- $ bundle install
19
-
20
- Or install it yourself as:
21
-
22
- $ gem install ergomentum_rubocop
18
+ ```bash
19
+ bundle install
20
+ ```
23
21
 
24
22
  ## Usage
25
23
 
26
- rubocop.yml
24
+ `rubocop.yml`:
25
+
27
26
  ```yml
28
27
  inherit_gem:
29
28
  ergomentum_rubocop:
@@ -4,18 +4,26 @@ require:
4
4
 
5
5
  Rails/ActiveRecordCallbacksOrder:
6
6
  Enabled: true
7
+ Rails/AddColumnIndex: # (new in 2.11)
8
+ Enabled: true
7
9
  Rails/AfterCommitOverride:
8
10
  Enabled: true
9
11
  Rails/AttributeDefaultBlockValue: # (new in 2.9)
10
12
  Enabled: true
11
13
  Rails/Delegate:
12
14
  Enabled: false
15
+ Rails/EagerEvaluationLogMessage: # (new in 2.11)
16
+ Enabled: true
13
17
  Rails/EnvironmentVariableAccess: # (new in 2.10)
14
18
  Enabled: false
19
+ Rails/ExpandedDateRange: # (new in 2.11)
20
+ Enabled: true
15
21
  Rails/FilePath:
16
22
  EnforcedStyle: arguments
17
23
  Rails/FindById:
18
24
  Enabled: true
25
+ Rails/I18nLocaleAssignment: # (new in 2.11)
26
+ Enabled: true
19
27
  Rails/Inquiry:
20
28
  Enabled: true
21
29
  Rails/MailerName:
@@ -38,6 +46,8 @@ Rails/SquishedSQLHeredocs:
38
46
  Enabled: true
39
47
  Rails/TimeZoneAssignment: # (new in 2.10)
40
48
  Enabled: true
49
+ Rails/UnusedIgnoredColumns: # (new in 2.11)
50
+ Enabled: true
41
51
  Rails/WhereEquals: # (new in 2.9)
42
52
  Enabled: true
43
53
  Rails/WhereExists:
@@ -25,6 +25,8 @@ Layout/SpaceBeforeBrackets: # (new in 1.7)
25
25
  Enabled: true
26
26
  Lint/AmbiguousAssignment: # (new in 1.7)
27
27
  Enabled: true
28
+ Lint/AmbiguousRange: # (new in 1.19)
29
+ Enabled: true
28
30
  Lint/DeprecatedConstants: # (new in 1.8)
29
31
  Enabled: true
30
32
  Lint/DuplicateBranch: # (new in 1.3)
@@ -35,8 +37,12 @@ Lint/EmptyBlock: # (new in 1.1)
35
37
  Enabled: true
36
38
  Lint/EmptyClass: # (new in 1.3)
37
39
  Enabled: true
40
+ Lint/EmptyInPattern: # (new in 1.16)
41
+ Enabled: true
38
42
  Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
39
43
  Enabled: true
44
+ Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
45
+ Enabled: true
40
46
  Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
41
47
  Enabled: true
42
48
  Lint/NumberedParameterAssignment: # (new in 1.9)
@@ -72,6 +78,8 @@ Metrics/ModuleLength:
72
78
  Enabled: false
73
79
  Metrics/ParameterLists:
74
80
  Enabled: false
81
+ Naming/InclusiveLanguage: # (new in 1.18)
82
+ Enabled: true
75
83
  Naming/PredicateName:
76
84
  Exclude:
77
85
  - spec/**/*
@@ -136,12 +144,16 @@ Style/HashConversion: # (new in 1.10)
136
144
  Enabled: true
137
145
  Style/HashExcept: # (new in 1.7)
138
146
  Enabled: true
147
+ Style/InPatternThen: # (new in 1.16)
148
+ Enabled: true
139
149
  Style/IfUnlessModifier:
140
150
  Enabled: false
141
151
  Style/IfWithBooleanLiteralBranches: # (new in 1.9)
142
152
  Enabled: true
143
153
  Style/MultilineBlockChain:
144
154
  Enabled: false
155
+ Style/MultilineInPatternThen: # (new in 1.16)
156
+ Enabled: true
145
157
  Style/NegatedIfElseCondition: # (new in 1.2)
146
158
  Enabled: true
147
159
  Style/Next:
@@ -156,8 +168,12 @@ Style/OptionHash:
156
168
  - args
157
169
  - params
158
170
  - parameters
171
+ Style/QuotedSymbols: # (new in 1.16)
172
+ Enabled: true
159
173
  Style/RedundantArgument: # (new in 1.4)
160
174
  Enabled: true
175
+ Style/RedundantSelfAssignmentBranch: # (new in 1.19)
176
+ Enabled: true
161
177
  Style/StringChars: # (new in 1.12)
162
178
  Enabled: true
163
179
  Style/StringLiterals:
@@ -5,11 +5,11 @@ require_relative "lib/ergomentum_rubocop/version"
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "ergomentum_rubocop"
7
7
  spec.version = ErgomentumRubocop::VERSION
8
- spec.authors = ["Ergomentum"]
8
+ spec.authors = ["ERGOMENTUM"]
9
9
  spec.email = ["info@ergomentum.de"]
10
- spec.summary = "Ergomentum RuboCop"
10
+ spec.summary = "ERGOMENTUM Rubocop definitions"
11
11
  spec.description = <<~HERE
12
- RuboCop style checking for Ergomentum projects.
12
+ Rubocop style checking for ERGOMENTUM projects.
13
13
  HERE
14
14
  spec.homepage = "https://www.ergomentum.de/"
15
15
  spec.licenses = "Nonstandard"
@@ -19,17 +19,21 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
  spec.required_ruby_version = ">= 3.0.0"
21
21
 
22
- spec.add_dependency "rubocop"
23
- spec.add_dependency "rubocop-performance"
24
- spec.add_dependency "rubocop-rails"
25
- spec.add_dependency "rubocop-rake"
26
- spec.add_dependency "rubocop-rspec"
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/"
24
+ spec.metadata["changelog_uri"] = "https://github.com/ergomentum/ergomentum_rubocop/blob/main/CHANGELOG.md"
27
25
 
28
- spec.add_development_dependency "byebug"
29
- spec.add_development_dependency "rake"
30
- spec.add_development_dependency "rspec"
31
- spec.add_development_dependency "rspec_junit_formatter"
32
- spec.add_development_dependency "simplecov"
33
- spec.add_development_dependency "test-prof"
34
- spec.add_development_dependency "webmock"
26
+ spec.add_dependency "rubocop", "~> 1.24.1"
27
+ spec.add_dependency "rubocop-performance", "~> 1.13.1"
28
+ spec.add_dependency "rubocop-rails", "~> 2.13.1"
29
+ spec.add_dependency "rubocop-rake", "~> 0.6.0"
30
+ spec.add_dependency "rubocop-rspec", "~> 2.7.0"
31
+
32
+ spec.add_development_dependency "byebug", "~> 11.1.3"
33
+ spec.add_development_dependency "rake", "~> 13.0.6"
34
+ spec.add_development_dependency "rspec", "~> 3.10.0"
35
+ spec.add_development_dependency "rspec_junit_formatter", "~> 0.5.1"
36
+ spec.add_development_dependency "simplecov", "~> 0.21.2"
37
+ spec.add_development_dependency "test-prof", "~> 1.0.7"
38
+ spec.add_development_dependency "webmock", "~> 3.14.0"
35
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErgomentumRubocop
4
- VERSION = "0.4.0"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,184 +1,184 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ergomentum_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ergomentum
7
+ - ERGOMENTUM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-10 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.24.1
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: '0'
26
+ version: 1.24.1
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: '0'
33
+ version: 1.13.1
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: '0'
40
+ version: 1.13.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.13.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 2.13.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.6.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 2.7.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: byebug
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 11.1.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 11.1.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 13.0.6
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 13.0.6
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 3.10.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 3.10.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec_junit_formatter
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.5.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.5.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: 0.21.2
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: 0.21.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: test-prof
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 1.0.7
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
166
+ version: 1.0.7
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 3.14.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
181
- description: 'RuboCop style checking for Ergomentum projects.
180
+ version: 3.14.0
181
+ description: 'Rubocop style checking for ERGOMENTUM projects.
182
182
 
183
183
  '
184
184
  email:
@@ -198,7 +198,10 @@ files:
198
198
  homepage: https://www.ergomentum.de/
199
199
  licenses:
200
200
  - Nonstandard
201
- metadata: {}
201
+ metadata:
202
+ homepage_uri: https://www.ergomentum.de/
203
+ source_code_uri: https://github.com/ergomentum/ergomentum_rubocop/
204
+ changelog_uri: https://github.com/ergomentum/ergomentum_rubocop/blob/main/CHANGELOG.md
202
205
  post_install_message:
203
206
  rdoc_options: []
204
207
  require_paths:
@@ -217,5 +220,5 @@ requirements: []
217
220
  rubygems_version: 3.2.15
218
221
  signing_key:
219
222
  specification_version: 4
220
- summary: Ergomentum RuboCop
223
+ summary: ERGOMENTUM Rubocop definitions
221
224
  test_files: []