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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +37 -0
- data/.github/workflows/lint.yml +31 -0
- data/.github/workflows/rubygem.yml +37 -0
- data/.gitignore +2 -1
- data/.rubocop.yml +30 -1
- data/.rubocop_todo.yml +28 -281
- data/Appraisals +10 -20
- data/CHANGELOG.md +10 -1
- data/Gemfile +2 -0
- data/README.md +3 -0
- data/Rakefile +8 -8
- data/acts_as_recursive_tree.gemspec +27 -18
- data/gemfiles/ar_52.gemfile +8 -0
- data/gemfiles/ar_60.gemfile +8 -0
- data/gemfiles/ar_61.gemfile +8 -0
- data/lib/acts_as_recursive_tree.rb +7 -11
- data/lib/acts_as_recursive_tree/acts_macro.rb +6 -6
- data/lib/acts_as_recursive_tree/associations.rb +10 -8
- data/lib/acts_as_recursive_tree/builders/ancestors.rb +3 -2
- data/lib/acts_as_recursive_tree/builders/descendants.rb +3 -1
- data/lib/acts_as_recursive_tree/builders/leaves.rb +7 -8
- data/lib/acts_as_recursive_tree/builders/relation_builder.rb +14 -10
- data/lib/acts_as_recursive_tree/builders/{strategy.rb → strategies.rb} +3 -9
- data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/ancestor.rb +3 -1
- data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/descendant.rb +3 -1
- data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/join.rb +5 -3
- data/lib/acts_as_recursive_tree/builders/{strategy → strategies}/subselect.rb +3 -1
- data/lib/acts_as_recursive_tree/config.rb +2 -0
- data/lib/acts_as_recursive_tree/model.rb +9 -8
- data/lib/acts_as_recursive_tree/options/depth_condition.rb +3 -2
- data/lib/acts_as_recursive_tree/options/query_options.rb +4 -2
- data/lib/acts_as_recursive_tree/options/values.rb +17 -19
- data/lib/acts_as_recursive_tree/railtie.rb +2 -0
- data/lib/acts_as_recursive_tree/scopes.rb +8 -4
- data/lib/acts_as_recursive_tree/version.rb +3 -1
- data/spec/builders_spec.rb +17 -11
- data/spec/db/database.rb +5 -4
- data/spec/db/database.yml +2 -5
- data/spec/db/models.rb +12 -11
- data/spec/db/schema.rb +3 -4
- data/spec/model/location_spec.rb +7 -11
- data/spec/model/node_spec.rb +35 -49
- data/spec/model/relation_spec.rb +6 -11
- data/spec/spec_helper.rb +54 -55
- data/spec/values_spec.rb +21 -17
- metadata +115 -33
- data/lib/acts_as_recursive_tree/builders.rb +0 -14
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cb3b3fef0f54be5c64a667f3ce289fb536bbdce72dc9758eae7a3c27385adf1
|
4
|
+
data.tar.gz: 5c65367bf564d3d12b70506ec2ecdaed1e9aaed535a822ccebff0b1aefe99b59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/.rubocop.yml
CHANGED
@@ -1 +1,30 @@
|
|
1
|
-
|
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
|
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:
|
10
|
-
#
|
11
|
-
#
|
12
|
-
|
13
|
-
|
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
|
-
#
|
30
|
-
|
31
|
-
|
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:
|
45
|
-
#
|
46
|
-
#
|
47
|
-
|
48
|
-
Layout/EmptyLinesAroundBlockBody:
|
20
|
+
# Offense count: 18
|
21
|
+
# Configuration parameters: Prefixes.
|
22
|
+
# Prefixes: when, with, without
|
23
|
+
RSpec/ContextWording:
|
49
24
|
Exclude:
|
50
|
-
- '
|
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:
|
58
|
-
#
|
59
|
-
|
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
|
-
|
157
|
-
Lint/DeprecatedClassMethods:
|
40
|
+
RSpec/MultipleDescribes:
|
158
41
|
Exclude:
|
159
|
-
- '
|
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
|
-
|
198
|
-
|
199
|
-
Max: 13
|
45
|
+
RSpec/MultipleExpectations:
|
46
|
+
Max: 2
|
200
47
|
|
201
|
-
# Offense count:
|
202
|
-
#
|
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:
|
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:
|
266
|
-
#
|
267
|
-
|
268
|
-
|
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
|