acts_as_recursive_tree 2.2.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +37 -0
  3. data/.github/workflows/lint.yml +31 -0
  4. data/.github/workflows/rubygem.yml +37 -0
  5. data/.gitignore +2 -1
  6. data/.rubocop.yml +30 -1
  7. data/.rubocop_todo.yml +28 -281
  8. data/Appraisals +10 -20
  9. data/CHANGELOG.md +10 -1
  10. data/Gemfile +2 -0
  11. data/README.md +3 -0
  12. data/Rakefile +8 -8
  13. data/acts_as_recursive_tree.gemspec +27 -18
  14. data/gemfiles/ar_52.gemfile +8 -0
  15. data/gemfiles/ar_60.gemfile +8 -0
  16. data/gemfiles/ar_61.gemfile +8 -0
  17. data/lib/acts_as_recursive_tree.rb +7 -11
  18. data/lib/acts_as_recursive_tree/acts_macro.rb +6 -6
  19. data/lib/acts_as_recursive_tree/associations.rb +10 -8
  20. data/lib/acts_as_recursive_tree/builders/ancestors.rb +3 -2
  21. data/lib/acts_as_recursive_tree/builders/descendants.rb +3 -1
  22. data/lib/acts_as_recursive_tree/builders/leaves.rb +7 -8
  23. data/lib/acts_as_recursive_tree/builders/relation_builder.rb +14 -10
  24. data/lib/acts_as_recursive_tree/builders/{strategy.rb → strategies.rb} +3 -9
  25. data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/ancestor.rb +3 -1
  26. data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/descendant.rb +3 -1
  27. data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/join.rb +5 -3
  28. data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/subselect.rb +3 -1
  29. data/lib/acts_as_recursive_tree/config.rb +2 -0
  30. data/lib/acts_as_recursive_tree/model.rb +9 -8
  31. data/lib/acts_as_recursive_tree/options/depth_condition.rb +3 -2
  32. data/lib/acts_as_recursive_tree/options/query_options.rb +4 -2
  33. data/lib/acts_as_recursive_tree/options/values.rb +17 -19
  34. data/lib/acts_as_recursive_tree/railtie.rb +2 -0
  35. data/lib/acts_as_recursive_tree/scopes.rb +8 -4
  36. data/lib/acts_as_recursive_tree/version.rb +3 -1
  37. data/spec/builders_spec.rb +17 -11
  38. data/spec/db/database.rb +5 -4
  39. data/spec/db/database.yml +2 -5
  40. data/spec/db/models.rb +12 -11
  41. data/spec/db/schema.rb +3 -4
  42. data/spec/model/location_spec.rb +7 -11
  43. data/spec/model/node_spec.rb +35 -49
  44. data/spec/model/relation_spec.rb +6 -11
  45. data/spec/spec_helper.rb +54 -55
  46. data/spec/values_spec.rb +21 -17
  47. metadata +115 -33
  48. data/lib/acts_as_recursive_tree/builders.rb +0 -14
  49. data/lib/acts_as_recursive_tree/options.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea1cf22b09ed91c55f3388b8c794a3d820eb353896feca3df3cd16bfadd1e1fb
4
- data.tar.gz: 55605034be64624f710175f2bc5714273f87e39124799fa4952dfb8425f9719d
3
+ metadata.gz: 6cb3b3fef0f54be5c64a667f3ce289fb536bbdce72dc9758eae7a3c27385adf1
4
+ data.tar.gz: 5c65367bf564d3d12b70506ec2ecdaed1e9aaed535a822ccebff0b1aefe99b59
5
5
  SHA512:
6
- metadata.gz: 4e357b5809c1aa3c28789af9c81d6ac17739f04b40cec8e43a6ecb2b690ea69e9d3752aab7cf3579fb38042b387132c9e02ddf5b3facc54b1206b33eb184d194
7
- data.tar.gz: 97a0ecfa41d4085f2a6a14a964be479747f4857af9400e9412699f6b7a21324c2af3632bba5831576ac08156fa8ff01ff06025e09c46b0e51fe64221b8a8bef6
6
+ metadata.gz: 187193f5f118a30d1359cde9b40d239e2d89ed9166dce8c0e73469dd3baf28b86fd7874ed89c763f6bdeff4c8d012bb78fa6cd521998f28289134d7bd0cce13a
7
+ data.tar.gz: 6ca7d12b131992d6f901d462c857b79a976e323f40d0f198d6e1c26f3ce1ff36d6707226d695687b8b1bfb2a1209f7ca754ab4412bb23d581771add1ee1826bd
@@ -0,0 +1,37 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: CI
9
+
10
+ on:
11
+ push:
12
+ branches: [ main ]
13
+ pull_request:
14
+ branches: [ '**' ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.5', '2.6', '2.7']
23
+ gemfile: [ar_52, ar_60, ar_61]
24
+ env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
25
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Set up Ruby
29
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
30
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
31
+ uses: ruby/setup-ruby@v1
32
+ # uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
33
+ with:
34
+ ruby-version: ${{ matrix.ruby-version }}
35
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
36
+ - name: Run tests
37
+ run: bundle exec rake
@@ -0,0 +1,31 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: LINT
9
+
10
+ on:
11
+ push:
12
+ branches: [ main ]
13
+ pull_request:
14
+ branches: [ '**' ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+ - name: Set up Ruby
23
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
25
+ uses: ruby/setup-ruby@v1
26
+ # uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
27
+ with:
28
+ ruby-version: 2.7
29
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30
+ - name: Run rubocop
31
+ run: bundle exec rubocop
@@ -0,0 +1,37 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ name: Ruby Gem
7
+
8
+ on:
9
+ # Manually publish
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build:
14
+ name: Build + Publish
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ packages: write
18
+ contents: read
19
+
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: 2.7
26
+ - run: bundle install
27
+ - name: Publish to RubyGems
28
+ env:
29
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
30
+ run: |
31
+ mkdir -p $HOME/.gem
32
+ touch $HOME/.gem/credentials
33
+ chmod 0600 $HOME/.gem/credentials
34
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
35
+ gem build *.gemspec
36
+ gem push *.gem
37
+
data/.gitignore CHANGED
@@ -15,4 +15,5 @@ mkmf.log
15
15
  /.idea
16
16
  db.log
17
17
  test.sqlite3
18
- /gemfiles
18
+ /gemfiles/*.lock
19
+ /gemfiles/.bundle
data/.rubocop.yml CHANGED
@@ -1 +1,30 @@
1
- inherit_from: .rubocop_todo.yml
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-rspec
4
+
5
+ inherit_from: .rubocop_todo.yml
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.5
9
+ NewCops: enable
10
+ SuggestExtensions: false
11
+
12
+ Metrics/AbcSize:
13
+ Max: 20
14
+
15
+ Rails/RakeEnvironment:
16
+ Enabled: false
17
+
18
+ RSpec/NestedGroups:
19
+ Max: 4
20
+
21
+ Style/Alias:
22
+ EnforcedStyle: prefer_alias
23
+
24
+ Style/FrozenStringLiteralComment:
25
+ Exclude:
26
+ - 'gemfiles/**/*'
27
+
28
+ Style/StringLiterals:
29
+ Exclude:
30
+ - 'gemfiles/**/*'
data/.rubocop_todo.yml CHANGED
@@ -1,321 +1,68 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-01-22 09:50:37 +0100 using RuboCop version 0.51.0.
3
+ # on 2021-08-02 08:58:28 UTC using RuboCop version 1.18.4.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 4
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: SupportedStyles, IndentOneStep, IndentationWidth.
12
- # SupportedStyles: case, end
13
- Layout/CaseIndentation:
14
- EnforcedStyle: end
15
-
16
- # Offense count: 1
17
- # Cop supports --auto-correct.
18
- Layout/CommentIndentation:
19
- Exclude:
20
- - 'spec/spec_helper.rb'
21
-
22
- # Offense count: 1
23
- # Cop supports --auto-correct.
24
- Layout/EmptyLineAfterMagicComment:
25
- Exclude:
26
- - 'acts_as_recursive_tree.gemspec'
9
+ # Offense count: 6
10
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
11
+ # IgnoredMethods: refine
12
+ Metrics/BlockLength:
13
+ Max: 87
27
14
 
28
15
  # Offense count: 1
29
- # Cop supports --auto-correct.
30
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
31
- Layout/EmptyLineBetweenDefs:
32
- Exclude:
33
- - 'lib/acts_as_recursive_tree/model.rb'
34
-
35
- # Offense count: 5
36
- # Cop supports --auto-correct.
37
- Layout/EmptyLines:
38
- Exclude:
39
- - 'lib/acts_as_recursive_tree/model.rb'
40
- - 'spec/db/models.rb'
41
- - 'spec/model/node_spec.rb'
42
- - 'spec/spec_helper.rb'
16
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
17
+ Metrics/MethodLength:
18
+ Max: 15
43
19
 
44
- # Offense count: 25
45
- # Cop supports --auto-correct.
46
- # Configuration parameters: EnforcedStyle, SupportedStyles.
47
- # SupportedStyles: empty_lines, no_empty_lines
48
- Layout/EmptyLinesAroundBlockBody:
20
+ # Offense count: 18
21
+ # Configuration parameters: Prefixes.
22
+ # Prefixes: when, with, without
23
+ RSpec/ContextWording:
49
24
  Exclude:
50
- - 'lib/acts_as_recursive_tree/scopes.rb'
51
- - 'spec/db/schema.rb'
25
+ - 'spec/builders_spec.rb'
52
26
  - 'spec/model/location_spec.rb'
53
27
  - 'spec/model/node_spec.rb'
54
28
  - 'spec/model/relation_spec.rb'
55
29
  - 'spec/values_spec.rb'
56
30
 
57
- # Offense count: 11
58
- # Cop supports --auto-correct.
59
- # Configuration parameters: EnforcedStyle, SupportedStyles.
60
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
61
- Layout/EmptyLinesAroundClassBody:
31
+ # Offense count: 37
32
+ # Configuration parameters: AssignmentOnly.
33
+ RSpec/InstanceVariable:
62
34
  Exclude:
63
- - 'lib/acts_as_recursive_tree/builders/ancestors.rb'
64
- - 'lib/acts_as_recursive_tree/builders/leaves.rb'
65
- - 'lib/acts_as_recursive_tree/builders/relation_builder.rb'
66
- - 'lib/acts_as_recursive_tree/options/depth_condition.rb'
67
- - 'lib/acts_as_recursive_tree/options/query_options.rb'
68
- - 'spec/db/models.rb'
69
-
70
- # Offense count: 6
71
- # Cop supports --auto-correct.
72
- Layout/EmptyLinesAroundMethodBody:
73
- Exclude:
74
- - 'lib/acts_as_recursive_tree/acts_macro.rb'
75
- - 'lib/acts_as_recursive_tree/builders/leaves.rb'
76
- - 'lib/acts_as_recursive_tree/options/values.rb'
77
- - 'spec/model/node_spec.rb'
78
- - 'spec/model/relation_spec.rb'
79
-
80
- # Offense count: 2
81
- # Cop supports --auto-correct.
82
- # Configuration parameters: EnforcedStyle, SupportedStyles.
83
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
84
- Layout/EmptyLinesAroundModuleBody:
85
- Exclude:
86
- - 'lib/acts_as_recursive_tree/acts_macro.rb'
87
- - 'lib/acts_as_recursive_tree/model.rb'
88
-
89
- # Offense count: 6
90
- # Cop supports --auto-correct.
91
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
92
- # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
93
- Layout/FirstParameterIndentation:
94
- Exclude:
95
- - 'lib/acts_as_recursive_tree/builders/leaves.rb'
96
- - 'lib/acts_as_recursive_tree/model.rb'
97
- - 'spec/model/relation_spec.rb'
98
-
99
- # Offense count: 1
100
- # Cop supports --auto-correct.
101
- # Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces.
102
- # SupportedStyles: space, no_space
103
- # SupportedStylesForEmptyBraces: space, no_space
104
- Layout/SpaceBeforeBlockBraces:
105
- Exclude:
106
- - 'spec/values_spec.rb'
107
-
108
- # Offense count: 2
109
- # Cop supports --auto-correct.
110
- # Configuration parameters: EnforcedStyle, SupportedStyles.
111
- # SupportedStyles: require_no_space, require_space
112
- Layout/SpaceInLambdaLiteral:
113
- Exclude:
114
- - 'lib/acts_as_recursive_tree/scopes.rb'
115
- - 'spec/builders_spec.rb'
116
-
117
- # Offense count: 2
118
- # Cop supports --auto-correct.
119
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
120
- # SupportedStyles: space, no_space
121
- # SupportedStylesForEmptyBraces: space, no_space
122
- Layout/SpaceInsideBlockBraces:
123
- Exclude:
124
- - 'spec/values_spec.rb'
125
-
126
- # Offense count: 2
127
- # Cop supports --auto-correct.
128
- Layout/SpaceInsidePercentLiteralDelimiters:
129
- Exclude:
130
- - 'Rakefile'
131
-
132
- # Offense count: 10
133
- # Cop supports --auto-correct.
134
- # Configuration parameters: EnforcedStyle, SupportedStyles.
135
- # SupportedStyles: final_newline, final_blank_line
136
- Layout/TrailingBlankLines:
137
- Exclude:
138
- - 'lib/acts_as_recursive_tree/acts_macro.rb'
139
- - 'lib/acts_as_recursive_tree/options/depth_condition.rb'
140
- - 'lib/acts_as_recursive_tree/options/values.rb'
141
- - 'spec/db/database.rb'
142
- - 'spec/db/models.rb'
143
- - 'spec/db/schema.rb'
144
35
  - 'spec/model/location_spec.rb'
145
36
  - 'spec/model/node_spec.rb'
146
37
  - 'spec/model/relation_spec.rb'
147
- - 'spec/values_spec.rb'
148
-
149
- # Offense count: 14
150
- Lint/AmbiguousRegexpLiteral:
151
- Exclude:
152
- - 'spec/builders_spec.rb'
153
- - 'spec/values_spec.rb'
154
38
 
155
39
  # Offense count: 1
156
- # Cop supports --auto-correct.
157
- Lint/DeprecatedClassMethods:
40
+ RSpec/MultipleDescribes:
158
41
  Exclude:
159
- - 'Rakefile'
160
-
161
- # Offense count: 1
162
- # Cop supports --auto-correct.
163
- # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
164
- # SupportedStylesAlignWith: keyword, variable, start_of_line
165
- Lint/EndAlignment:
166
- Exclude:
167
- - 'lib/acts_as_recursive_tree/options/values.rb'
168
-
169
- # Offense count: 1
170
- Lint/HandleExceptions:
171
- Exclude:
172
- - 'Rakefile'
173
-
174
- # Offense count: 1
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
177
- Lint/UnusedMethodArgument:
178
- Exclude:
179
- - 'lib/acts_as_recursive_tree/builders/leaves.rb'
180
-
181
- # Offense count: 5
182
- Metrics/AbcSize:
183
- Max: 44
184
-
185
- # Offense count: 8
186
- # Configuration parameters: CountComments, ExcludedMethods.
187
- Metrics/BlockLength:
188
- Max: 89
189
-
190
- # Offense count: 41
191
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
192
- # URISchemes: http, https
193
- Metrics/LineLength:
194
- Max: 291
42
+ - 'spec/builders_spec.rb'
195
43
 
196
44
  # Offense count: 2
197
- # Configuration parameters: CountComments.
198
- Metrics/MethodLength:
199
- Max: 13
45
+ RSpec/MultipleExpectations:
46
+ Max: 2
200
47
 
201
- # Offense count: 1
202
- # Cop supports --auto-correct.
203
- Security/YAMLLoad:
204
- Exclude:
205
- - 'spec/db/database.rb'
206
-
207
- # Offense count: 1
208
- # Cop supports --auto-correct.
209
- # Configuration parameters: EnforcedStyle, SupportedStyles.
210
- # SupportedStyles: prefer_alias, prefer_alias_method
211
- Style/Alias:
212
- Exclude:
213
- - 'lib/acts_as_recursive_tree/acts_macro.rb'
214
-
215
- # Offense count: 1
216
- # Cop supports --auto-correct.
217
- Style/BlockComments:
218
- Exclude:
219
- - 'spec/spec_helper.rb'
220
-
221
- # Offense count: 1
222
- # Cop supports --auto-correct.
223
- Style/ColonMethodCall:
224
- Exclude:
225
- - 'spec/db/database.rb'
226
-
227
- # Offense count: 20
48
+ # Offense count: 17
49
+ # Configuration parameters: AllowedConstants.
228
50
  Style/Documentation:
229
51
  Exclude:
230
- - 'spec/**/*'
231
- - 'test/**/*'
232
52
  - 'lib/acts_as_recursive_tree.rb'
233
53
  - 'lib/acts_as_recursive_tree/acts_macro.rb'
234
- - 'lib/acts_as_recursive_tree/associations.rb'
235
- - 'lib/acts_as_recursive_tree/builders.rb'
236
54
  - 'lib/acts_as_recursive_tree/builders/ancestors.rb'
237
55
  - 'lib/acts_as_recursive_tree/builders/descendants.rb'
238
56
  - 'lib/acts_as_recursive_tree/builders/leaves.rb'
239
- - 'lib/acts_as_recursive_tree/builders/relation_builder.rb'
240
57
  - 'lib/acts_as_recursive_tree/model.rb'
241
- - 'lib/acts_as_recursive_tree/options.rb'
242
58
  - 'lib/acts_as_recursive_tree/options/depth_condition.rb'
243
59
  - 'lib/acts_as_recursive_tree/options/query_options.rb'
244
60
  - 'lib/acts_as_recursive_tree/options/values.rb'
245
61
  - 'lib/acts_as_recursive_tree/railtie.rb'
246
- - 'lib/acts_as_recursive_tree/scopes.rb'
247
-
248
- # Offense count: 2
249
- # Cop supports --auto-correct.
250
- # Configuration parameters: EnforcedStyle, SupportedStyles.
251
- # SupportedStyles: compact, expanded
252
- Style/EmptyMethod:
253
- Exclude:
254
- - 'lib/acts_as_recursive_tree/options/values.rb'
255
62
 
256
- # Offense count: 2
257
- # Cop supports --auto-correct.
258
- Style/Encoding:
259
- Exclude:
260
- - 'acts_as_recursive_tree.gemspec'
261
- - 'spec/db/schema.rb'
262
-
263
- # Offense count: 1
63
+ # Offense count: 9
264
64
  # Cop supports --auto-correct.
265
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
266
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
267
- Style/HashSyntax:
268
- Exclude:
269
- - 'spec/db/schema.rb'
270
-
271
- # Offense count: 2
272
- # Cop supports --auto-correct.
273
- # Configuration parameters: MaxLineLength.
274
- Style/IfUnlessModifier:
275
- Exclude:
276
- - 'spec/model/node_spec.rb'
277
- - 'spec/model/relation_spec.rb'
278
-
279
- # Offense count: 1
280
- # Cop supports --auto-correct.
281
- # Configuration parameters: InverseMethods, InverseBlocks.
282
- Style/InverseMethods:
283
- Exclude:
284
- - 'lib/acts_as_recursive_tree/model.rb'
285
-
286
- # Offense count: 6
287
- # Cop supports --auto-correct.
288
- # Configuration parameters: EnforcedStyle, SupportedStyles.
289
- # SupportedStyles: line_count_dependent, lambda, literal
290
- Style/Lambda:
291
- Exclude:
292
- - 'lib/acts_as_recursive_tree/scopes.rb'
293
-
294
- # Offense count: 1
295
- # Cop supports --auto-correct.
296
- Style/MultilineIfModifier:
297
- Exclude:
298
- - 'lib/acts_as_recursive_tree/scopes.rb'
299
-
300
- # Offense count: 2
301
- # Cop supports --auto-correct.
302
- # Configuration parameters: PreferredDelimiters.
303
- Style/PercentLiteralDelimiters:
304
- Exclude:
305
- - 'Rakefile'
306
- - 'acts_as_recursive_tree.gemspec'
307
-
308
- # Offense count: 17
309
- # Cop supports --auto-correct.
310
- Style/RedundantSelf:
311
- Exclude:
312
- - 'lib/acts_as_recursive_tree/acts_macro.rb'
313
- - 'lib/acts_as_recursive_tree/associations.rb'
314
- - 'lib/acts_as_recursive_tree/model.rb'
315
- - 'lib/acts_as_recursive_tree/scopes.rb'
316
-
317
- # Offense count: 2
318
- # Cop supports --auto-correct.
319
- Style/UnneededPercentQ:
320
- Exclude:
321
- - 'acts_as_recursive_tree.gemspec'
65
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
66
+ # URISchemes: http, https
67
+ Layout/LineLength:
68
+ Max: 291