rubocopital 0.5.2 → 0.7.1

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: 0a4be06b794f7f8db5561187324dd8fe2e3a6b524abbbbe3ff011811b8162f48
4
- data.tar.gz: a1ad0c91297d1c069ef52aba227629d8ea40f83c443411f3a39704272403760b
3
+ metadata.gz: fa91448eedebae43c1fda455137780e6a8c79b72bc6ea614b653a45c29ef7443
4
+ data.tar.gz: c134b1779190323312c903335b456642293ee35a3ca96320d8c793bbfaacabf4
5
5
  SHA512:
6
- metadata.gz: edb989da3f65589daf1a61c2526056a920be939d3e7beb92fc664d12d8362c3f1800ff8bb40698f174a9f676da30692b2914dd0d089a517f89d49f0c897e2ba7
7
- data.tar.gz: c790746426a7b1769f31dcf6e64866d0b929a575153328797d9879823b1cd1c0f5b558b62d56eb69f9f12420d678e49ac1abb4445c35d6f781ffe9077c4a07e9
6
+ metadata.gz: e9334d8baa0e4377e9a09a9cbdec723bf6a91a3cf2fae7c61564e2cdf4b5ff410b0455f626013e52cdd39393614f67426d3ae7c73f6c1cc83d03044be38f519e
7
+ data.tar.gz: f08d8109365ca006946776f531969d054df10c743dc6d739efd5ca61c1fb2f518a360253deef34184860d69c2e608767c254a654b90afe67091fca28f6297f99
@@ -0,0 +1,52 @@
1
+ name: Ruby
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build-ruby-26:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v1
12
+ - name: Set up Ruby 2.6
13
+ uses: actions/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.6.x
16
+ - name: Build and test with Rake
17
+ run: |
18
+ gem install bundler
19
+ bundle install --jobs 4 --retry 3
20
+ bundle exec rake
21
+
22
+ build-ruby-25:
23
+
24
+ runs-on: ubuntu-latest
25
+
26
+ steps:
27
+ - uses: actions/checkout@v1
28
+ - name: Set up Ruby 2.5
29
+ uses: actions/setup-ruby@v1
30
+ with:
31
+ ruby-version: 2.5.x
32
+ - name: Build and test with Rake
33
+ run: |
34
+ gem install bundler
35
+ bundle install --jobs 4 --retry 3
36
+ bundle exec rake
37
+
38
+ build-ruby-24:
39
+
40
+ runs-on: ubuntu-latest
41
+
42
+ steps:
43
+ - uses: actions/checkout@v1
44
+ - name: Set up Ruby 2.5
45
+ uses: actions/setup-ruby@v1
46
+ with:
47
+ ruby-version: 2.5.x
48
+ - name: Build and test with Rake
49
+ run: |
50
+ gem install bundler
51
+ bundle install --jobs 4 --retry 3
52
+ bundle exec rake
@@ -1,36 +1,22 @@
1
1
  stages:
2
2
  - test
3
3
 
4
- test_ruby_2_2:
5
- image: ruby:2.2.10
6
- stage: test
7
- script:
8
- - bundle install
9
- - bundle exec rake
10
-
11
- test_ruby_2_3:
12
- image: ruby:2.3.7
13
- stage: test
14
- script:
15
- - bundle install
16
- - bundle exec rake
17
-
18
4
  test_ruby_2_4:
19
- image: ruby:2.4.4
5
+ image: ruby:2.4.9
20
6
  stage: test
21
7
  script:
22
8
  - bundle install
23
9
  - bundle exec rake
24
10
 
25
11
  test_ruby_2_5:
26
- image: ruby:2.5.1
12
+ image: ruby:2.5.7
27
13
  stage: test
28
14
  script:
29
15
  - bundle install
30
16
  - bundle exec rake
31
17
 
32
18
  test_ruby_2_6:
33
- image: ruby:2.6-rc
19
+ image: ruby:2.6.5
34
20
  stage: test
35
21
  script:
36
22
  - bundle install
@@ -0,0 +1,40 @@
1
+ require: rubocop-performance
2
+
3
+ Performance/AncestorsInclude:
4
+ Enabled: true
5
+
6
+ Performance/StringInclude:
7
+ Enabled: true
8
+
9
+ Performance/ChainArrayAllocation:
10
+ Enabled: true
11
+
12
+ Performance/OpenStruct:
13
+ Enabled: true
14
+
15
+ Performance/Squeeze:
16
+ Enabled: true
17
+
18
+ Performance/SortReverse:
19
+ Enabled: true
20
+
21
+ Performance/ReverseFirst:
22
+ Enabled: true
23
+
24
+ Performance/RedundantStringChars:
25
+ Enabled: true
26
+
27
+ Performance/RedundantSortBlock:
28
+ Enabled: true
29
+
30
+ Performance/IoReadlines:
31
+ Enabled: true
32
+
33
+ Performance/DeleteSuffix:
34
+ Enabled: true
35
+
36
+ Performance/BindCall:
37
+ Enabled: true
38
+
39
+ Performance/BigDecimalWithNumericArgument:
40
+ Enabled: true
@@ -0,0 +1,113 @@
1
+ require: rubocop-rails
2
+
3
+ Rails:
4
+ Enabled: true
5
+
6
+ Rails/ApplicationController:
7
+ Enabled: true
8
+
9
+ Rails/ApplicationJob:
10
+ Enabled: false
11
+
12
+ Rails/ApplicationMailer:
13
+ Enabled: true
14
+
15
+ Rails/ApplicationRecord:
16
+ Enabled: false
17
+
18
+ Rails/BelongsTo:
19
+ Enabled: true
20
+
21
+ Rails/Date:
22
+ EnforcedStyle: flexible
23
+
24
+ Rails/EnumHash:
25
+ Enabled: true
26
+
27
+ Rails/HasAndBelongsToMany:
28
+ Enabled: false
29
+
30
+ Rails/HttpPositionalArguments:
31
+ Enabled: false
32
+
33
+ Rails/IgnoredSkipActionFilterOption:
34
+ Enabled: true
35
+
36
+ Rails/LexicallyScopedActionFilter:
37
+ Enabled: false
38
+
39
+ Rails/LinkToBlank:
40
+ Enabled: true
41
+
42
+ Rails/OutputSafety:
43
+ Enabled: false
44
+
45
+ Rails/RakeEnvironment:
46
+ Enabled: false
47
+
48
+ Rails/SafeNavigationWithBlank:
49
+ Enabled: true
50
+
51
+ Rails/SkipsModelValidations:
52
+ Enabled: false
53
+
54
+ Rails/UniqueValidationWithoutIndex:
55
+ Enabled: true
56
+
57
+ Rails/RenderPlainText:
58
+ Enabled: true
59
+
60
+ Rails/RenderInline:
61
+ Enabled: true
62
+
63
+ Rails/RedundantForeignKey:
64
+ Enabled: true
65
+
66
+ Rails/PluckInWhere:
67
+ Enabled: true
68
+
69
+ Rails/Pluck:
70
+ Enabled: true
71
+
72
+ Rails/Pick:
73
+ Enabled: true
74
+
75
+ Rails/NegateInclude:
76
+ Enabled: true
77
+
78
+ Rails/MailerName:
79
+ Enabled: true
80
+
81
+ Rails/FindById:
82
+ Enabled: true
83
+
84
+ Rails/ContentTag:
85
+ Enabled: true
86
+
87
+ Rails/MatchRoute:
88
+ Enabled: true
89
+
90
+ Rails/ShortI18n:
91
+ Enabled: true
92
+
93
+ Rails/PluckId:
94
+ Enabled: false
95
+
96
+ Rails/ActiveRecordCallbacksOrder:
97
+ Enabled: true
98
+
99
+ Rails/Inquiry:
100
+ Enabled: true
101
+
102
+ Rails/WhereExists:
103
+ Enabled: true
104
+
105
+ Rails/UnknownEnv:
106
+ Environments:
107
+ - development
108
+ - test
109
+ - review
110
+ - staging
111
+ - acceptance
112
+ - training
113
+ - production
@@ -13,6 +13,9 @@ FactoryBot/CreateList:
13
13
  Enabled: true
14
14
  EnforcedStyle: create_list
15
15
 
16
+ FactoryBot/FactoryClassName:
17
+ Enabled: true
18
+
16
19
  Rails/HttpStatus:
17
20
  Enabled: true
18
21
  EnforcedStyle: symbolic
@@ -38,6 +41,9 @@ RSpec/BeEql:
38
41
  RSpec/BeforeAfterAll:
39
42
  Enabled: true
40
43
 
44
+ RSpec/ContextMethod:
45
+ Enabled: true
46
+
41
47
  RSpec/ContextWording:
42
48
  Enabled: true
43
49
 
@@ -54,6 +60,13 @@ RSpec/DescribedClass:
54
60
  RSpec/DescribeMethod:
55
61
  Enabled: true
56
62
 
63
+ RSpec/Dialect:
64
+ Enabled: false
65
+
66
+ RSpec/EmptyLineAfterExample:
67
+ Enabled: true
68
+ AllowConsecutiveOneLiners: true
69
+
57
70
  RSpec/EmptyExampleGroup:
58
71
  Enabled: true
59
72
 
@@ -107,6 +120,9 @@ RSpec/HookArgument:
107
120
  RSpec/HooksBeforeExamples:
108
121
  Enabled: true
109
122
 
123
+ RSpec/ImplicitBlockExpectation:
124
+ Enabled: true
125
+
110
126
  RSpec/ImplicitExpect:
111
127
  Enabled: true
112
128
  EnforcedStyle: is_expected
@@ -135,6 +151,9 @@ RSpec/IteratedExpectation:
135
151
  RSpec/LeadingSubject:
136
152
  Enabled: true
137
153
 
154
+ RSpec/LeakyConstantDeclaration:
155
+ Enabled: true
156
+
138
157
  RSpec/LetBeforeExamples:
139
158
  Enabled: true
140
159
 
@@ -230,3 +249,18 @@ RSpec/VoidExpect:
230
249
 
231
250
  RSpec/Yield:
232
251
  Enabled: true
252
+
253
+ RSpec/RepeatedExampleGroupDescription:
254
+ Enabled: true
255
+
256
+ RSpec/VariableName:
257
+ Enabled: true
258
+
259
+ RSpec/VariableDefinition:
260
+ Enabled: true
261
+
262
+ RSpec/RepeatedExampleGroupBody:
263
+ Enabled: true
264
+
265
+ RSpec/EmptyHook:
266
+ Enabled: true
@@ -1,4 +1,6 @@
1
- inherit_from: default.yml
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-rspec
2
5
 
3
- Documentation:
4
- Enabled: false
6
+ inherit_from: default.yml
@@ -6,6 +6,103 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.7.1] - 05 October 2020
10
+
11
+ - Upgrade rubocop to 0.89.0 to prevent bug in 0.88.0
12
+
13
+ - Added Style/ExplicitBlockArgument disabled
14
+ - Added Style/GlobalStdStream disabled
15
+ - Added Style/OptionalBooleanParameter disabled
16
+ - Added Style/SingleArgumentDig disabled
17
+ - Added Style/StringConcatenation disabled
18
+
19
+ - Added Lint/BinaryOperatorWithIdenticalOperands disabled
20
+ - Added Lint/DuplicateRescueException disabled
21
+ - Added Lint/EmptyConditionalBody disabled
22
+ - Added Lint/FloatComparison disabled
23
+ - Added Lint/MissingSuper disabled
24
+ - Added Lint/OutOfRangeRegexpRef disabled
25
+ - Added Lint/SelfAssignment disabled
26
+ - Added Lint/TopLevelReturnWithArgument disabled
27
+ - Added Lint/UnreachableLoop disabled
28
+
29
+ ## [0.7.0] - 10 August 2020
30
+
31
+ - Added Rails/ActiveRecordCallbacksOrder
32
+ - Added Rails/Inquiry
33
+ - Added Rails/WhereExists
34
+
35
+ - Added Lint/RaiseException
36
+ - Added Lint/MixedRegexpCaptureTypes
37
+ - Added Lint/DeprecatedOpenSSLConstant
38
+ - Added Lint/DuplicateElsifCondition
39
+ - Added Lint/MixedRegexpCaptureTypes
40
+
41
+ - Added Performance/AncestorsInclude
42
+ - Added Performance/StringInclude
43
+ - Added Performance/Squeeze
44
+ - Added Performance/SortReverse
45
+ - Added Performance/ReverseFirst
46
+ - Added Performance/RedundantStringChars
47
+ - Added Performance/RedundantSortBlock
48
+ - Added Performance/IoReadlines
49
+ - Added Performance/ReverseFirst
50
+ - Added Performance/DeleteSuffix
51
+ - Added Performance/BindCall
52
+ - Added Performance/BigDecimalWithNumericArgument
53
+ - Added Performance/DeleteSuffix
54
+
55
+ - Added RSpec/RepeatedExampleGroupDescription
56
+ - Added RSpec/VariableName
57
+ - Added RSpec/VariableDefinition
58
+ - Added RSpec/RepeatedExampleGroupBody
59
+ - Added RSpec/EmptyHook
60
+ - Added RSpec/RepeatedExampleGroupBody
61
+
62
+ - Added Style/SlicingWithRange
63
+ - Added Style/RedundantRegexpEscape
64
+ - Added Style/RedundantRegexpCharacterClass
65
+ - Added Style/RedundantFetchBlock
66
+ - Added Style/RedundantAssignment
67
+ - Added Style/HashTransformValues
68
+ - Added Style/HashEachMethods
69
+ - Added Style/ExponentialNotation
70
+ - Added Style/BisectedAttrAccessor
71
+ - Added Style/AccessorGrouping
72
+
73
+ ## [0.6.1] - 11 March 2020
74
+
75
+ - Bumped rake dependency to a higher version to mitigate CVE-2020-8130
76
+
77
+ ## [0.6.0] - 20 January 2020
78
+
79
+ - Updated rubocop gem to `0.77.0`
80
+ - Updated rubocop-performance gem to `1.5.1`
81
+ - Added rubocop-rails gem version `2.4.0`
82
+
83
+ - Added Rails/ApplicationController
84
+ - Added Rails/ApplicationMailer
85
+ - Added Rails/EnumHash
86
+ - Added Rails/SafeNavigationWithBlank
87
+ - Added FactoryBot/FactoryClassNam
88
+ - Added RSpec/ContextMethod
89
+ - Added RSpec/EmptyLineAfterExample: with AllowConsecutiveOneLiners: true
90
+ - Added RSpec/ImplicitBlockExpectation
91
+ - Added RSpec/LeakyConstantDeclaration
92
+ - Added Style/FloatDivision: with EnforcedStyle: single_coerce
93
+ - Added Style/MultilineWhenThen
94
+ - Added Lint/SendWithMixinArgument
95
+ - Added Gemspec/RubyVersionGlobalsUsage
96
+
97
+ - Disabled Rails/RakeEnvironment
98
+ - Disabled RSpec/Dialect
99
+
100
+ - Renamed Layout/AlignHash to Layout/HashAlignment
101
+ - Renamed Layout/AlignParameters to Layout/ParameterAlignment
102
+ - Renamed Layout/IndentFirstParameter to Layout/FirstParameterIndentation
103
+
104
+ ---
105
+
9
106
  ## [0.5.1] - 30 July 2019
10
107
 
11
108
  ### Disabled
data/README.md CHANGED
@@ -7,7 +7,7 @@ This is the common configuration for ruby-style checks by [Rubocop](https://gith
7
7
  Add this line to your application's Gemfile under the `development` and `test` groups to include a specific version of this gem:
8
8
 
9
9
  ```ruby
10
- gem 'rubocopital', '~> 0.5.1', require: false
10
+ gem 'rubocopital', '~> 0.6.1', require: false
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -25,6 +25,8 @@ inherit_gem:
25
25
  - default.yml
26
26
  ```
27
27
 
28
+ `default.yml` does also require the `rubocop-performance` configuration.
29
+
28
30
  If you have specific configurations that differ from the agreed upon defaults,
29
31
  you can just add them below.
30
32
 
@@ -48,6 +50,16 @@ inherit_gem:
48
50
  - .rubocop-rspec.yml
49
51
  ```
50
52
 
53
+ The same applies to Rails.
54
+
55
+ ```
56
+ inherit_gem:
57
+ rubocopital:
58
+ - default.yml
59
+ - .rubocop-rails.yml
60
+ - .rubocop-rspec.yml
61
+ ```
62
+
51
63
  ## Development
52
64
 
53
65
  After checking out the repo, run `bin/setup` to install dependencies. Then, run
@@ -1,5 +1,7 @@
1
+ inherit_from: .rubocop-performance.yml
2
+
1
3
  AllCops:
2
- TargetRubyVersion: 2.3
4
+ TargetRubyVersion: 2.6
3
5
  Exclude:
4
6
  - db/migrate/*
5
7
  - db/seeds/*
@@ -20,7 +22,7 @@ AllCops:
20
22
  DisplayCopNames: true
21
23
  DisplayStyleGuide: true
22
24
 
23
- Layout/AlignHash:
25
+ Layout/HashAlignment:
24
26
  EnforcedHashRocketStyle: key
25
27
  # key - left alignment of keys
26
28
  # 'a' => 2
@@ -29,7 +31,6 @@ Layout/AlignHash:
29
31
  # key - left alignment of keys
30
32
  # a: 0
31
33
  # bb: 1
32
- # YC Compliant
33
34
  EnforcedLastArgumentHashStyle: ignore_implicit
34
35
  # ignore_implicit - Ignore only implicit hashes.
35
36
  # Accepts:
@@ -39,8 +40,7 @@ Layout/AlignHash:
39
40
  # function({a: 1,
40
41
  # b: 2})
41
42
 
42
- Layout/AlignParameters:
43
- # YC Compliant
43
+ Layout/ParameterAlignment:
44
44
  EnforcedStyle: with_fixed_indentation
45
45
  # The `with_fixed_indentation` style aligns the following lines with one
46
46
  # level of indentation relative to the start of the line with the method call.
@@ -49,12 +49,10 @@ Layout/AlignParameters:
49
49
  # b)
50
50
 
51
51
  Style/AndOr:
52
- # YC Compliant
53
52
  EnforcedStyle: conditionals
54
53
  # `and` and `or` are banned only in conditionals (conditionals)
55
54
 
56
55
  Style/BlockDelimiters:
57
- # YC Compliant
58
56
  EnforcedStyle: line_count_based
59
57
  # The `line_count_based` style enforces braces around single line blocks and
60
58
  # do..end around multi-line blocks.
@@ -62,11 +60,9 @@ Style/BlockDelimiters:
62
60
  - spec/**/*
63
61
 
64
62
  Style/ClassAndModuleChildren:
65
- # YC Compliant
66
63
  EnforcedStyle: compact
67
64
 
68
65
  Style/IdenticalConditionalBranches:
69
- # YC Compliant
70
66
  Enabled: false
71
67
  # Redirect_to usage in conditionals
72
68
 
@@ -78,56 +74,54 @@ Style/ExpandPathArguments:
78
74
  Enabled: false
79
75
 
80
76
  Style/NumericPredicate:
81
- # YC Compliant
82
77
  Enabled: false
83
78
  # Use .positive? instead of > 0
84
79
  # Use .zero? instead of == 0
85
80
  # Use .nonzero? instead of != 0.
86
81
 
87
82
  Style/GlobalVars:
88
- # YC Compliant
89
83
  Enabled: true
90
84
  AllowedVariables: [$ASSET_MODE]
91
85
  # Do not introduce global variables. (used for cucumber custom_env)
92
86
 
93
87
  Style/EachWithObject:
94
- # YC Compliant
95
88
  Enabled: false
96
89
 
97
90
  Style/UnpackFirst:
98
91
  Enabled: false
99
92
 
100
- Rails/Date:
101
- # YC Compliant
102
- EnforcedStyle: flexible
103
- # The value `flexible` allows usage of `Date.current`, `Date.yesterday`, etc
104
- # (but not `Date.today`) which are overridden by ActiveSupport to handle current
105
- # time zone.
93
+ Layout/EmptyLinesAroundAttributeAccessor:
94
+ Enabled: true
95
+
96
+ Layout/SpaceAroundMethodCallOperator:
97
+ Enabled: true
106
98
 
107
99
  Layout/EndAlignment:
108
- # YC Compliant
109
100
  EnforcedStyleAlignWith: variable
110
101
 
102
+ Layout/HeredocArgumentClosingParenthesis:
103
+ Enabled: true
104
+
105
+ Layout/FirstParameterIndentation:
106
+ Enabled: true
107
+ EnforcedStyle: consistent
108
+
109
+ Layout/LineLength:
110
+ Max: 120
111
+
111
112
  Layout/MultilineMethodCallIndentation:
112
113
  EnforcedStyle: indented
113
114
 
114
115
  Layout/MultilineOperationIndentation:
115
- # YC Compliant
116
116
  EnforcedStyle: indented
117
117
 
118
118
  Style/TrivialAccessors:
119
119
  Enabled: true
120
120
 
121
121
  Metrics/AbcSize:
122
- # YC Compliant
123
122
  Enabled: false
124
123
 
125
- Metrics/LineLength:
126
- # YC Compliant
127
- Max: 120
128
-
129
124
  Metrics/BlockLength:
130
- # YC Compliant
131
125
  CountComments: false # count full line comments?
132
126
  Max: 50
133
127
  Exclude:
@@ -135,105 +129,176 @@ Metrics/BlockLength:
135
129
  - config/routes.rb
136
130
 
137
131
  Metrics/ClassLength:
138
- # YC Compliant
139
132
  Enabled: false
140
133
 
141
134
  Metrics/MethodLength:
142
- # YC Compliant
143
135
  Max: 30
144
136
  Severity: warning
145
137
 
146
138
  Metrics/ModuleLength:
147
- # YC Compliant
148
139
  Enabled: false
149
140
 
150
- Performance/ChainArrayAllocation:
141
+ Style/Documentation:
142
+ Enabled: false
143
+
144
+
145
+ Bundler/OrderedGems:
146
+ TreatCommentsAsGroupSeparators: true
147
+
148
+ Style/EmptyMethod:
149
+ Enabled: false
150
+
151
+ Style/FloatDivision:
151
152
  Enabled: true
153
+ EnforcedStyle: single_coerce
152
154
 
153
- Performance/OpenStruct:
155
+ Style/IpAddresses:
154
156
  Enabled: true
155
157
 
156
- Documentation:
157
- # YC Compliant
158
+ Style/ModuleFunction:
158
159
  Enabled: false
159
160
 
160
- Rails:
161
- # YC Compliant
161
+ Style/MultilineMethodSignature:
162
162
  Enabled: true
163
163
 
164
- Bundler/OrderedGems:
165
- # YC Compliant
166
- TreatCommentsAsGroupSeparators: true
164
+ Style/MultilineWhenThen:
165
+ Enabled: true
166
+
167
+ Style/NegatedUnless:
168
+ Enabled: true
169
+ EnforcedStyle: both
170
+
171
+ Style/StringLiterals:
172
+ Enabled: false
173
+
174
+ Style/ArrayCoercion:
175
+ Enabled: true
176
+
177
+ Style/CaseLikeIf:
178
+ Enabled: true
179
+
180
+ Style/HashAsLastArrayItem:
181
+ Enabled: true
182
+
183
+ Style/HashLikeCase:
184
+ Enabled: true
185
+
186
+ Style/HashTransformKeys:
187
+ Enabled: true
188
+
189
+ Style/HashTransformValues:
190
+ Enabled: true
191
+
192
+ Style/RedundantAssignment:
193
+ Enabled: true
194
+
195
+ Style/RedundantFetchBlock:
196
+ Enabled: true
197
+
198
+ Style/RedundantFileExtensionInRequire:
199
+ Enabled: true
200
+
201
+ Style/RedundantRegexpCharacterClass:
202
+ Enabled: true
203
+
204
+ Style/RedundantRegexpEscape:
205
+ Enabled: true
206
+
207
+ Style/SlicingWithRange:
208
+ Enabled: true
209
+
210
+ Style/HashEachMethods:
211
+ Enabled: true
212
+
213
+ Style/ExponentialNotation:
214
+ Enabled: true
215
+
216
+ Style/BisectedAttrAccessor:
217
+ Enabled: true
167
218
 
168
- Rails/OutputSafety:
169
- # YC Compliant
219
+ Style/AccessorGrouping:
220
+ Enabled: true
221
+
222
+ Style/StringLiteralsInInterpolation:
170
223
  Enabled: false
171
- # Prefer safe_join instead of html_save
172
224
 
173
- Rails/HttpPositionalArguments:
174
- # YC Compliant
225
+ Style/ExplicitBlockArgument:
175
226
  Enabled: false
176
- # prefer get(:new, params: {}) instead of get(:new, {})
177
227
 
178
- Rails/SkipsModelValidations:
179
- # YC Compliant
228
+ Style/GlobalStdStream:
180
229
  Enabled: false
181
230
 
182
- Rails/HasAndBelongsToMany:
183
- # YC Compliant
231
+ Style/OptionalBooleanParameter:
184
232
  Enabled: false
185
233
 
186
- # This cop checks that models subclass ApplicationRecord with Rails 5.0.
187
- Rails/ApplicationRecord:
234
+ Style/SingleArgumentDig:
188
235
  Enabled: false
189
236
 
190
- # This cop checks that models subclass ApplicationJob with Rails 5.0.
191
- Rails/ApplicationJob:
237
+ Style/StringConcatenation:
192
238
  Enabled: false
193
239
 
194
- Rails/BelongsTo:
240
+ Lint/DisjunctiveAssignmentInConstructor:
195
241
  Enabled: true
196
242
 
197
- Rails/IgnoredSkipActionFilterOption:
243
+ Lint/HeredocMethodCallPosition:
198
244
  Enabled: true
199
245
 
200
- Rails/LinkToBlank:
246
+ Lint/SafeNavigationWithEmpty:
201
247
  Enabled: true
202
248
 
203
- Style/EmptyMethod:
204
- # YC Compliant
205
- Enabled: false
249
+ Lint/SendWithMixinArgument:
250
+ Enabled: true
206
251
 
207
- Style/IpAddresses:
252
+ Lint/ToJSON:
208
253
  Enabled: true
209
254
 
210
- Style/ModuleFunction:
211
- # YC Compliant
255
+ Gemspec/RubyVersionGlobalsUsage:
256
+ Enabled: true
257
+
258
+ Gemspec/RequiredRubyVersion:
212
259
  Enabled: false
213
260
 
214
- Style/MultilineMethodSignature:
261
+ Lint/NonDeterministicRequireOrder:
262
+ Enabled: false
263
+
264
+ Lint/RaiseException:
215
265
  Enabled: true
216
266
 
217
- Style/StringLiterals:
218
- # YC Compliant
267
+ Lint/MixedRegexpCaptureTypes:
268
+ Enabled: true
269
+
270
+ Lint/DeprecatedOpenSSLConstant:
271
+ Enabled: true
272
+
273
+ Lint/StructNewOverride:
274
+ Enabled: true
275
+
276
+ Lint/DuplicateElsifCondition:
277
+ Enabled: true
278
+
279
+ Lint/BinaryOperatorWithIdenticalOperands:
219
280
  Enabled: false
220
281
 
221
- Style/StringLiteralsInInterpolation:
222
- # YC Compliant
282
+ Lint/DuplicateRescueException:
223
283
  Enabled: false
224
284
 
225
- Lint/DisjunctiveAssignmentInConstructor:
226
- Enabled: true
285
+ Lint/EmptyConditionalBody:
286
+ Enabled: false
287
+
288
+ Lint/FloatComparison:
289
+ Enabled: false
290
+
291
+ Lint/MissingSuper:
292
+ Enabled: false
293
+
294
+ Lint/OutOfRangeRegexpRef:
295
+ Enabled: false
227
296
 
228
- Rails/UnknownEnv:
229
- Environments:
230
- - development
231
- - test
232
- - review
233
- - staging
234
- - acceptance
235
- - training
236
- - production
297
+ Lint/SelfAssignment:
298
+ Enabled: false
299
+
300
+ Lint/TopLevelReturnWithArgument:
301
+ Enabled: false
237
302
 
238
- Rails/LexicallyScopedActionFilter:
303
+ Lint/UnreachableLoop:
239
304
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubocopital
4
- VERSION = "0.5.2"
4
+ VERSION = "0.7.1"
5
5
  end
@@ -32,10 +32,12 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ["lib"]
34
34
 
35
- spec.add_runtime_dependency "rubocop", "~> 0.67.2"
36
- spec.add_runtime_dependency "rubocop-rspec", "1.32.0"
35
+ spec.add_runtime_dependency "rubocop", "~> 0.89.0"
36
+ spec.add_runtime_dependency "rubocop-performance", "~> 1.7.1"
37
+ spec.add_runtime_dependency "rubocop-rails", "2.7.0"
38
+ spec.add_runtime_dependency "rubocop-rspec", "1.42.0"
37
39
 
38
40
  spec.add_development_dependency "bundler"
39
- spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rake", ">= 12.3.3"
40
42
  spec.add_development_dependency "rspec", "~> 3.0"
41
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocopital
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Eeken
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-11-08 00:00:00.000000000 Z
12
+ date: 2020-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,28 +17,56 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.67.2
20
+ version: 0.89.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.67.2
27
+ version: 0.89.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: rubocop-performance
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 1.7.1
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 1.7.1
42
+ - !ruby/object:Gem::Dependency
43
+ name: rubocop-rails
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '='
47
+ - !ruby/object:Gem::Version
48
+ version: 2.7.0
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '='
54
+ - !ruby/object:Gem::Version
55
+ version: 2.7.0
28
56
  - !ruby/object:Gem::Dependency
29
57
  name: rubocop-rspec
30
58
  requirement: !ruby/object:Gem::Requirement
31
59
  requirements:
32
60
  - - '='
33
61
  - !ruby/object:Gem::Version
34
- version: 1.32.0
62
+ version: 1.42.0
35
63
  type: :runtime
36
64
  prerelease: false
37
65
  version_requirements: !ruby/object:Gem::Requirement
38
66
  requirements:
39
67
  - - '='
40
68
  - !ruby/object:Gem::Version
41
- version: 1.32.0
69
+ version: 1.42.0
42
70
  - !ruby/object:Gem::Dependency
43
71
  name: bundler
44
72
  requirement: !ruby/object:Gem::Requirement
@@ -57,16 +85,16 @@ dependencies:
57
85
  name: rake
58
86
  requirement: !ruby/object:Gem::Requirement
59
87
  requirements:
60
- - - "~>"
88
+ - - ">="
61
89
  - !ruby/object:Gem::Version
62
- version: '10.0'
90
+ version: 12.3.3
63
91
  type: :development
64
92
  prerelease: false
65
93
  version_requirements: !ruby/object:Gem::Requirement
66
94
  requirements:
67
- - - "~>"
95
+ - - ">="
68
96
  - !ruby/object:Gem::Version
69
- version: '10.0'
97
+ version: 12.3.3
70
98
  - !ruby/object:Gem::Dependency
71
99
  name: rspec
72
100
  requirement: !ruby/object:Gem::Requirement
@@ -91,9 +119,12 @@ executables: []
91
119
  extensions: []
92
120
  extra_rdoc_files: []
93
121
  files:
122
+ - ".github/workflows/ruby.yml"
94
123
  - ".gitignore"
95
124
  - ".gitlab-ci.yml"
96
125
  - ".rspec"
126
+ - ".rubocop-performance.yml"
127
+ - ".rubocop-rails.yml"
97
128
  - ".rubocop-rspec.yml"
98
129
  - ".rubocop.yml"
99
130
  - ".travis.yml"
@@ -131,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
162
  - !ruby/object:Gem::Version
132
163
  version: '0'
133
164
  requirements: []
134
- rubygems_version: 3.0.6
165
+ rubygems_version: 3.1.2
135
166
  signing_key:
136
167
  specification_version: 4
137
168
  summary: Shared rubocop configuration