maid 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +14 -0
  3. data/.github/workflows/coverage.yml +3 -3
  4. data/.github/workflows/lint.yml +9 -1
  5. data/.github/workflows/merge-gatekeeper.yml +20 -0
  6. data/.github/workflows/release.yml +13 -20
  7. data/.github/workflows/stale.yml +25 -0
  8. data/.github/workflows/test.yml +8 -7
  9. data/.gitignore +1 -1
  10. data/.release-please-manifest.json +1 -1
  11. data/.rubocop.yml +3 -1
  12. data/.rubocop_todo.yml +105 -107
  13. data/.ruby-version +1 -1
  14. data/CHANGELOG.md +16 -0
  15. data/Dockerfile +13 -0
  16. data/Gemfile.lock +226 -0
  17. data/Guardfile +2 -0
  18. data/README.md +82 -49
  19. data/Rakefile +9 -0
  20. data/fixtures/files/test_rules.rb +3 -0
  21. data/lib/maid/logger/logger.rb +63 -0
  22. data/lib/maid/maid.rb +6 -22
  23. data/lib/maid/repeat.rb +2 -2
  24. data/lib/maid/rule.rb +2 -2
  25. data/lib/maid/rule_container.rb +2 -2
  26. data/lib/maid/tools.rb +3 -3
  27. data/lib/maid/trash_migration.rb +2 -0
  28. data/lib/maid/version.rb +1 -1
  29. data/lib/maid/watch.rb +2 -2
  30. data/lib/maid.rb +3 -2
  31. data/maid.gemspec +12 -9
  32. data/release-please-config.json +18 -0
  33. data/script/docker-test +7 -0
  34. data/spec/fakefs_helper.rb +13 -0
  35. data/spec/lib/maid/logger/logger_spec.rb +64 -0
  36. data/spec/lib/maid/maid_spec.rb +113 -103
  37. data/spec/lib/maid/rake/single_rule_spec.rb +1 -1
  38. data/spec/lib/maid/tools_spec.rb +383 -224
  39. data/spec/lib/maid/trash_migration_spec.rb +7 -5
  40. data/spec/spec_helper.rb +9 -1
  41. metadata +89 -42
  42. data/Vagrantfile +0 -14
  43. data/script/vagrant-provision +0 -43
  44. data/script/vagrant-test +0 -7
  45. data/script/vagrant-test-all +0 -34
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 386fffc38404ce847ae5650376f84be904056ad5d6acd86cea9311cedade94c1
4
- data.tar.gz: 49c5f4a3b21d583d2edd09d73d862c495c2e8d5eb36c510401bc5ff216316c57
3
+ metadata.gz: 1c4204200ab04dcec0fad2cc364c70f9901b777f489ee2d3d1779e05d41e836a
4
+ data.tar.gz: 0bdd56e20b4439cd36df8beacf632a6d9432d66173c0202e2b3d772395ee8035
5
5
  SHA512:
6
- metadata.gz: 334f18ddb7a90a62a6b3c6136930c1724e08358ab7fb0dcca7011570b1b93bffa24958a07756c52f303f617aeea8cc02142d4d6163b75cfeaad3b71c32aeb34e
7
- data.tar.gz: 397ca948024144b6beaa7f7139df13a66ff84b2240a3ffd8a716d67286334f5e3da6520e25e6d5df2ba8a3e5f8f417ec64fd29e42f4a955ef5fb24471b3a7dc3
6
+ metadata.gz: d1e07b28f9f173f2954f53f343779298c51cabd3e3a3dae491a27d5dd0fccf17adb6a9edb7ef93556b225f68515f88af7d05d6db8ec81690dec8252b6a44b0a5
7
+ data.tar.gz: 1654a1358b0653902168abfe5113e45bafbfa44b9dcbfebb64d73daf79a2a3b7fdde2225ecfa54e0c39f762e4a1e0f0b42f60ee2f53afa77f1dd464928901ee8
@@ -0,0 +1,14 @@
1
+ # # These are supported funding model platforms
2
+ #
3
+ # github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ # patreon: # Replace with a single Patreon username
5
+ # open_collective: # Replace with a single Open Collective username
6
+ # ko_fi: # Replace with a single Ko-fi username
7
+ # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ # liberapay: # Replace with a single Liberapay username
10
+ # issuehunt: # Replace with a single IssueHunt username
11
+ # lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12
+ # polar: # Replace with a single Polar username
13
+ buy_me_a_coffee: "benjaminoakes"
14
+ # custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -3,7 +3,7 @@ name: Code coverage
3
3
  on:
4
4
  push:
5
5
  branches:
6
- master
6
+ - master
7
7
  pull_request:
8
8
  branches:
9
9
  - master
@@ -12,7 +12,7 @@ jobs:
12
12
  code-climate:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
18
  with:
@@ -26,4 +26,4 @@ jobs:
26
26
  env:
27
27
  CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_KEY }}
28
28
  COVERAGE: true
29
-
29
+ ISOLATED: true
@@ -12,7 +12,7 @@ jobs:
12
12
  rubocop:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v3
15
+ - uses: actions/checkout@v4
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
18
  with:
@@ -22,3 +22,11 @@ jobs:
22
22
  run: bundle install
23
23
  - name: Run lint
24
24
  run: bundle exec rubocop
25
+ shellcheck:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - name: Install Shellcheck
30
+ run: sudo apt install shellcheck -y
31
+ - name: Run shellcheck
32
+ run: shellcheck -x script/*
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Merge Gatekeeper
3
+
4
+ on:
5
+ pull_request:
6
+ branches:
7
+ - main
8
+ - master
9
+
10
+ jobs:
11
+ merge-gatekeeper:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ checks: read
15
+ statuses: read
16
+ steps:
17
+ - name: Run Merge Gatekeeper
18
+ uses: upsidr/merge-gatekeeper@v1
19
+ with:
20
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -13,42 +13,35 @@ jobs:
13
13
  release-please:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v3
16
+ - uses: actions/checkout@v4
17
17
  - name: Prepare release
18
18
  id: release
19
- uses: google-github-actions/release-please-action@v3
19
+ uses: googleapis/release-please-action@v4
20
20
  with:
21
- release-type: ruby
22
- package-name: maid
23
- # Major bump is minor instead pre-1.0.0
24
- bump-minor-pre-major: true
25
- # Minor bump is patch instead pre-1.0.0
26
- bump-patch-for-minor-pre-major: true
27
- # Don't parse commits before this one as they don't follow the
28
- # conventional commit format AND don't have `release-please`
29
- # COMMIT_MESSAGE_OVERRIDE data.
30
- # (https://www.conventionalcommits.org/en/v1.0.0/#summary)
31
- bootstrap-sha: 0a6ff8abc6db00aca181d6bfed9751e332900ac9
32
- # This is the last release before starting to use release-please
33
- last-release-sha: 0a6ff8abc6db00aca181d6bfed9751e332900ac9
34
- version-file: lib/maid/version.rb
35
21
  # Don't use GITHUB_TOKEN because this doesn't allow workflows to
36
22
  # trigger workflows; it leave the `release-please`-generated PR with
37
23
  # pending checks as they're never started.
38
24
  token: ${{ secrets.BOT_GH_TOKEN }}
39
- # Uncomment for pre-releases, see
40
- # https://github.com/maid/maid/wiki/Release-Process
41
- # prerelease: true
42
- # release-as: v0.10.0-alpha.3
25
+ config-file: release-please-config.json
26
+ manifest-file: .release-please-manifest.json
27
+
43
28
  - name: Set up Ruby
44
29
  uses: ruby/setup-ruby@v1
45
30
  with:
46
31
  # ruby-version derived from .ruby-version file
47
32
  bundler-cache: true
33
+ if: ${{ steps.release.outputs.release_created }}
34
+
48
35
  - name: Install dependencies
49
36
  run: bundle install
37
+ if: ${{ steps.release.outputs.release_created }}
38
+
50
39
  - name: Run tests
51
40
  run: bundle exec rake
41
+ env:
42
+ ISOLATED: true
43
+ if: ${{ steps.release.outputs.release_created }}
44
+
52
45
  - name: Publish gem
53
46
  run: |
54
47
  mkdir -p $HOME/.gem
@@ -0,0 +1,25 @@
1
+ name: 'Close stale issues and PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '30 1 * * *'
5
+
6
+ jobs:
7
+ stale:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/stale@v8
11
+ with:
12
+ days-before-stale: 30
13
+ days-before-close: 7
14
+ stale-issue-message: >-
15
+ This issue has been open for 30 days without any activity. Remove
16
+ `no-issue-activity` label or comment to avoid automatic closure in
17
+ 7 days.
18
+ stale-pr-message: >-
19
+ This PR has been open for 30 days without any activity. Remove
20
+ `no-pr-activity` label or comment to avoid automatic closure in 7
21
+ days.
22
+ stale-issue-label: 'no-issue-activity'
23
+ any-of-labels: 'needs-info'
24
+ stale-pr-label: 'no-pr-activity'
25
+ exempt-pr-labels: 'awaiting-approval,work-in-progress'
@@ -15,16 +15,15 @@ jobs:
15
15
  os:
16
16
  - ubuntu-20.04
17
17
  - ubuntu-22.04
18
- - macos-11
19
- - macos-12
18
+ - macos-14
19
+ - macos-15
20
20
  ruby-version:
21
- - 2.7
22
- - 3.0
23
- - 3.1
24
- - 3.2
21
+ - "3.2"
22
+ - "3.3"
23
+ - "3.4"
25
24
  runs-on: ${{ matrix.os }}
26
25
  steps:
27
- - uses: actions/checkout@v3
26
+ - uses: actions/checkout@v4
28
27
  - name: Set up Ruby
29
28
  uses: ruby/setup-ruby@v1
30
29
  with:
@@ -34,3 +33,5 @@ jobs:
34
33
  run: bundle install
35
34
  - name: Run tests
36
35
  run: bundle exec rake
36
+ env:
37
+ ISOLATED: true
data/.gitignore CHANGED
@@ -2,8 +2,8 @@
2
2
  .bundle
3
3
  .vagrant
4
4
  .yardoc/*
5
- Gemfile.lock
6
5
  tmp/*
7
6
  doc/*
8
7
  .act-secrets
9
8
  coverage/
9
+ guard_*_runner*
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.10.0"
2
+ ".": "0.11.0"
3
3
  }
data/.rubocop.yml CHANGED
@@ -3,6 +3,7 @@ inherit_from: .rubocop_todo.yml
3
3
 
4
4
  require:
5
5
  - rubocop-rake
6
+ plugins:
6
7
  - rubocop-rspec
7
8
 
8
9
  AllCops:
@@ -10,8 +11,9 @@ AllCops:
10
11
  Exclude:
11
12
  - "bin/*"
12
13
  - "vendor/bundle/**/*" # when running on GH Actions
14
+ - ".vagrant/**/*"
13
15
  NewCops: enable
14
- TargetRubyVersion: 2.7
16
+ TargetRubyVersion: "3.2"
15
17
 
16
18
  Metrics/BlockLength:
17
19
  Exclude:
data/.rubocop_todo.yml CHANGED
@@ -12,30 +12,30 @@
12
12
  # Include: **/*.gemspec, **/Gemfile, **/gems.rb
13
13
  Gemspec/DevelopmentDependencies:
14
14
  Exclude:
15
- - 'maid.gemspec'
15
+ - "maid.gemspec"
16
16
 
17
17
  # Offense count: 1
18
18
  # Configuration parameters: Severity, Include.
19
19
  # Include: **/*.gemspec
20
20
  Gemspec/DuplicatedAssignment:
21
21
  Exclude:
22
- - 'maid.gemspec'
22
+ - "maid.gemspec"
23
23
 
24
24
  # Offense count: 2
25
25
  # Configuration parameters: AllowComments, AllowEmptyLambdas.
26
26
  Lint/EmptyBlock:
27
27
  Exclude:
28
- - 'spec/lib/maid/maid_spec.rb'
28
+ - "spec/lib/maid/maid_spec.rb"
29
29
 
30
30
  # Offense count: 1
31
31
  Lint/MissingSuper:
32
32
  Exclude:
33
- - 'lib/maid/rake/task.rb'
33
+ - "lib/maid/rake/task.rb"
34
34
 
35
35
  # Offense count: 3
36
36
  Lint/UselessAssignment:
37
37
  Exclude:
38
- - 'lib/maid/tools.rb'
38
+ - "lib/maid/tools.rb"
39
39
 
40
40
  # Offense count: 7
41
41
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
@@ -63,10 +63,10 @@ Metrics/CyclomaticComplexity:
63
63
  Metrics/MethodLength:
64
64
  Max: 27
65
65
 
66
- # Offense count: 4
66
+ # Offense count: 5
67
67
  # Configuration parameters: CountComments, CountAsOne.
68
68
  Metrics/ModuleLength:
69
- Max: 753
69
+ Max: 855
70
70
 
71
71
  # Offense count: 2
72
72
  # Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -78,7 +78,7 @@ Metrics/PerceivedComplexity:
78
78
  # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
79
79
  Naming/HeredocDelimiterNaming:
80
80
  Exclude:
81
- - 'lib/maid/app.rb'
81
+ - "lib/maid/app.rb"
82
82
 
83
83
  # Offense count: 5
84
84
  # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
@@ -88,37 +88,37 @@ Naming/HeredocDelimiterNaming:
88
88
  # MethodDefinitionMacros: define_method, define_singleton_method
89
89
  Naming/PredicateName:
90
90
  Exclude:
91
- - 'spec/**/*'
92
- - 'lib/maid/platform.rb'
93
- - 'lib/maid/tools.rb'
91
+ - "spec/**/*"
92
+ - "lib/maid/platform.rb"
93
+ - "lib/maid/tools.rb"
94
94
 
95
95
  # Offense count: 1
96
96
  RSpec/BeforeAfterAll:
97
97
  Exclude:
98
- - 'spec/spec_helper.rb'
99
- - 'spec/rails_helper.rb'
100
- - 'spec/support/**/*.rb'
101
- - 'spec/lib/maid/rake/task_spec.rb'
98
+ - "spec/spec_helper.rb"
99
+ - "spec/rails_helper.rb"
100
+ - "spec/support/**/*.rb"
101
+ - "spec/lib/maid/rake/task_spec.rb"
102
102
 
103
103
  # Offense count: 17
104
104
  # Configuration parameters: Prefixes, AllowedPatterns.
105
105
  # Prefixes: when, with, without
106
106
  RSpec/ContextWording:
107
107
  Exclude:
108
- - 'spec/lib/maid/rake/task_spec.rb'
109
- - 'spec/lib/maid/tools_spec.rb'
110
- - 'spec/lib/maid/trash_migration_spec.rb'
108
+ - "spec/lib/maid/rake/task_spec.rb"
109
+ - "spec/lib/maid/tools_spec.rb"
110
+ - "spec/lib/maid/trash_migration_spec.rb"
111
111
 
112
112
  # Offense count: 1
113
113
  # Configuration parameters: IgnoredMetadata.
114
114
  RSpec/DescribeClass:
115
115
  Exclude:
116
- - '**/spec/features/**/*'
117
- - '**/spec/requests/**/*'
118
- - '**/spec/routing/**/*'
119
- - '**/spec/system/**/*'
120
- - '**/spec/views/**/*'
121
- - 'spec/dependency_spec.rb'
116
+ - "**/spec/features/**/*"
117
+ - "**/spec/requests/**/*"
118
+ - "**/spec/routing/**/*"
119
+ - "**/spec/system/**/*"
120
+ - "**/spec/views/**/*"
121
+ - "spec/dependency_spec.rb"
122
122
 
123
123
  # Offense count: 59
124
124
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -126,13 +126,13 @@ RSpec/DescribeClass:
126
126
  # SupportedStyles: described_class, explicit
127
127
  RSpec/DescribedClass:
128
128
  Exclude:
129
- - 'spec/dependency_spec.rb'
130
- - 'spec/lib/maid/app_spec.rb'
131
- - 'spec/lib/maid/maid_spec.rb'
132
- - 'spec/lib/maid/rule_spec.rb'
133
- - 'spec/lib/maid/tools_spec.rb'
134
- - 'spec/lib/maid/user_agent_spec.rb'
135
- - 'spec/lib/maid_spec.rb'
129
+ - "spec/dependency_spec.rb"
130
+ - "spec/lib/maid/app_spec.rb"
131
+ - "spec/lib/maid/maid_spec.rb"
132
+ - "spec/lib/maid/rule_spec.rb"
133
+ - "spec/lib/maid/tools_spec.rb"
134
+ - "spec/lib/maid/user_agent_spec.rb"
135
+ - "spec/lib/maid_spec.rb"
136
136
 
137
137
  # Offense count: 8
138
138
  # Configuration parameters: CountAsOne.
@@ -142,49 +142,49 @@ RSpec/ExampleLength:
142
142
  # Offense count: 1
143
143
  RSpec/ExpectInHook:
144
144
  Exclude:
145
- - 'spec/lib/maid/tools_spec.rb'
145
+ - "spec/lib/maid/tools_spec.rb"
146
146
 
147
147
  # Offense count: 5
148
148
  # Configuration parameters: AssignmentOnly.
149
149
  RSpec/InstanceVariable:
150
150
  Exclude:
151
- - 'spec/dependency_spec.rb'
152
- - 'spec/lib/maid_spec.rb'
151
+ - "spec/dependency_spec.rb"
152
+ - "spec/lib/maid_spec.rb"
153
153
 
154
154
  # Offense count: 57
155
155
  # Configuration parameters: EnforcedStyle.
156
156
  # SupportedStyles: have_received, receive
157
157
  RSpec/MessageSpies:
158
158
  Exclude:
159
- - 'spec/lib/maid/app_spec.rb'
160
- - 'spec/lib/maid/maid_spec.rb'
161
- - 'spec/lib/maid/rake/single_rule_spec.rb'
162
- - 'spec/lib/maid/rake/task_spec.rb'
163
- - 'spec/lib/maid/tools_spec.rb'
164
- - 'spec/lib/maid_spec.rb'
159
+ - "spec/lib/maid/app_spec.rb"
160
+ - "spec/lib/maid/maid_spec.rb"
161
+ - "spec/lib/maid/rake/single_rule_spec.rb"
162
+ - "spec/lib/maid/rake/task_spec.rb"
163
+ - "spec/lib/maid/tools_spec.rb"
164
+ - "spec/lib/maid_spec.rb"
165
165
 
166
166
  # Offense count: 2
167
167
  RSpec/MultipleDescribes:
168
168
  Exclude:
169
- - 'spec/lib/maid/numeric_extensions_spec.rb'
170
- - 'spec/lib/maid_spec.rb'
169
+ - "spec/lib/maid/numeric_extensions_spec.rb"
170
+ - "spec/lib/maid_spec.rb"
171
171
 
172
172
  # Offense count: 42
173
173
  RSpec/MultipleExpectations:
174
174
  Max: 4
175
175
 
176
- # Offense count: 1
176
+ # Offense count: 22
177
177
  # Configuration parameters: AllowSubject.
178
178
  RSpec/MultipleMemoizedHelpers:
179
- Max: 7
179
+ Max: 14
180
180
 
181
181
  # Offense count: 16
182
182
  # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
183
183
  # SupportedStyles: always, named_only
184
184
  RSpec/NamedSubject:
185
185
  Exclude:
186
- - 'spec/lib/maid/platform_spec.rb'
187
- - 'spec/lib/maid/trash_migration_spec.rb'
186
+ - "spec/lib/maid/platform_spec.rb"
187
+ - "spec/lib/maid/trash_migration_spec.rb"
188
188
 
189
189
  # Offense count: 3
190
190
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -192,39 +192,37 @@ RSpec/NamedSubject:
192
192
  # SupportedStyles: inflected, explicit
193
193
  RSpec/PredicateMatcher:
194
194
  Exclude:
195
- - 'spec/lib/maid/tools_spec.rb'
195
+ - "spec/lib/maid/tools_spec.rb"
196
196
 
197
197
  # Offense count: 13
198
198
  RSpec/StubbedMock:
199
199
  Exclude:
200
- - 'spec/lib/maid/app_spec.rb'
201
- - 'spec/lib/maid/maid_spec.rb'
202
- - 'spec/lib/maid/rake/single_rule_spec.rb'
203
- - 'spec/lib/maid/tools_spec.rb'
200
+ - "spec/lib/maid/app_spec.rb"
201
+ - "spec/lib/maid/maid_spec.rb"
202
+ - "spec/lib/maid/rake/single_rule_spec.rb"
203
+ - "spec/lib/maid/tools_spec.rb"
204
204
 
205
205
  # Offense count: 1
206
206
  # This cop supports unsafe autocorrection (--autocorrect-all).
207
- # Configuration parameters: .
208
- # SupportedStyles: constant, string
209
207
  RSpec/VerifiedDoubleReference:
210
- EnforcedStyle: string
208
+ Enabled: true
211
209
 
212
210
  # Offense count: 20
213
211
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
214
212
  RSpec/VerifiedDoubles:
215
213
  Exclude:
216
- - 'spec/lib/maid/app_spec.rb'
217
- - 'spec/lib/maid/maid_spec.rb'
218
- - 'spec/lib/maid/rake/single_rule_spec.rb'
219
- - 'spec/lib/maid/tools_spec.rb'
220
- - 'spec/lib/maid/trash_migration_spec.rb'
221
- - 'spec/lib/maid_spec.rb'
214
+ - "spec/lib/maid/app_spec.rb"
215
+ - "spec/lib/maid/maid_spec.rb"
216
+ - "spec/lib/maid/rake/single_rule_spec.rb"
217
+ - "spec/lib/maid/tools_spec.rb"
218
+ - "spec/lib/maid/trash_migration_spec.rb"
219
+ - "spec/lib/maid_spec.rb"
222
220
 
223
221
  # Offense count: 1
224
222
  # This cop supports safe autocorrection (--autocorrect).
225
223
  Rake/Desc:
226
224
  Exclude:
227
- - 'Rakefile'
225
+ - "Rakefile"
228
226
 
229
227
  # Offense count: 11
230
228
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -232,47 +230,47 @@ Rake/Desc:
232
230
  # SupportedStyles: nested, compact
233
231
  Style/ClassAndModuleChildren:
234
232
  Exclude:
235
- - 'lib/maid/app.rb'
236
- - 'lib/maid/downloading.rb'
237
- - 'lib/maid/maid.rb'
238
- - 'lib/maid/numeric_extensions.rb'
239
- - 'lib/maid/platform.rb'
240
- - 'lib/maid/repeat.rb'
241
- - 'lib/maid/rule.rb'
242
- - 'lib/maid/rule_container.rb'
243
- - 'lib/maid/tools.rb'
244
- - 'lib/maid/user_agent.rb'
245
- - 'lib/maid/watch.rb'
233
+ - "lib/maid/app.rb"
234
+ - "lib/maid/downloading.rb"
235
+ - "lib/maid/maid.rb"
236
+ - "lib/maid/numeric_extensions.rb"
237
+ - "lib/maid/platform.rb"
238
+ - "lib/maid/repeat.rb"
239
+ - "lib/maid/rule.rb"
240
+ - "lib/maid/rule_container.rb"
241
+ - "lib/maid/tools.rb"
242
+ - "lib/maid/user_agent.rb"
243
+ - "lib/maid/watch.rb"
246
244
 
247
245
  # Offense count: 1
248
246
  Style/ClassVars:
249
247
  Exclude:
250
- - 'lib/maid/maid.rb'
248
+ - "lib/maid/maid.rb"
251
249
 
252
250
  # Offense count: 1
253
251
  # This cop supports unsafe autocorrection (--autocorrect-all).
254
252
  Style/CollectionCompact:
255
253
  Exclude:
256
- - 'lib/maid/maid.rb'
254
+ - "lib/maid/maid.rb"
257
255
 
258
256
  # Offense count: 12
259
257
  # Configuration parameters: AllowedConstants.
260
258
  Style/Documentation:
261
259
  Exclude:
262
- - 'spec/**/*'
263
- - 'test/**/*'
264
- - 'lib/maid.rb'
265
- - 'lib/maid/app.rb'
266
- - 'lib/maid/downloading.rb'
267
- - 'lib/maid/numeric_extensions.rb'
268
- - 'lib/maid/platform.rb'
269
- - 'lib/maid/rake/single_rule.rb'
270
- - 'lib/maid/rake/task.rb'
271
- - 'lib/maid/repeat.rb'
272
- - 'lib/maid/rule.rb'
273
- - 'lib/maid/rule_container.rb'
274
- - 'lib/maid/trash_migration.rb'
275
- - 'lib/maid/watch.rb'
260
+ - "spec/**/*"
261
+ - "test/**/*"
262
+ - "lib/maid.rb"
263
+ - "lib/maid/app.rb"
264
+ - "lib/maid/downloading.rb"
265
+ - "lib/maid/numeric_extensions.rb"
266
+ - "lib/maid/platform.rb"
267
+ - "lib/maid/rake/single_rule.rb"
268
+ - "lib/maid/rake/task.rb"
269
+ - "lib/maid/repeat.rb"
270
+ - "lib/maid/rule.rb"
271
+ - "lib/maid/rule_container.rb"
272
+ - "lib/maid/trash_migration.rb"
273
+ - "lib/maid/watch.rb"
276
274
 
277
275
  # Offense count: 34
278
276
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -285,20 +283,20 @@ Style/FrozenStringLiteralComment:
285
283
  # This cop supports unsafe autocorrection (--autocorrect-all).
286
284
  Style/GlobalStdStream:
287
285
  Exclude:
288
- - 'lib/maid/app.rb'
289
- - 'spec/lib/maid/app_spec.rb'
286
+ - "lib/maid/app.rb"
287
+ - "spec/lib/maid/app_spec.rb"
290
288
 
291
289
  # Offense count: 4
292
290
  # This cop supports unsafe autocorrection (--autocorrect-all).
293
291
  # Configuration parameters: InverseMethods, InverseBlocks.
294
292
  Style/InverseMethods:
295
293
  Exclude:
296
- - 'lib/maid/tools.rb'
294
+ - "lib/maid/tools.rb"
297
295
 
298
296
  # Offense count: 2
299
297
  Style/MultilineBlockChain:
300
298
  Exclude:
301
- - 'lib/maid/tools.rb'
299
+ - "lib/maid/tools.rb"
302
300
 
303
301
  # Offense count: 1
304
302
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -306,7 +304,7 @@ Style/MultilineBlockChain:
306
304
  # SupportedStyles: literals, strict
307
305
  Style/MutableConstant:
308
306
  Exclude:
309
- - 'lib/maid/rake/task.rb'
307
+ - "lib/maid/rake/task.rb"
310
308
 
311
309
  # Offense count: 6
312
310
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -314,8 +312,8 @@ Style/MutableConstant:
314
312
  # SupportedStyles: predicate, comparison
315
313
  Style/NumericPredicate:
316
314
  Exclude:
317
- - 'spec/**/*'
318
- - 'lib/maid/tools.rb'
315
+ - "spec/**/*"
316
+ - "lib/maid/tools.rb"
319
317
 
320
318
  # Offense count: 3
321
319
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -323,15 +321,15 @@ Style/NumericPredicate:
323
321
  # AllowedMethods: present?, blank?, presence, try, try!
324
322
  Style/SafeNavigation:
325
323
  Exclude:
326
- - 'lib/maid/rake/task.rb'
327
- - 'lib/maid/rule_container.rb'
328
- - 'spec/lib/maid/app_spec.rb'
324
+ - "lib/maid/rake/task.rb"
325
+ - "lib/maid/rule_container.rb"
326
+ - "spec/lib/maid/app_spec.rb"
329
327
 
330
328
  # Offense count: 2
331
329
  # This cop supports unsafe autocorrection (--autocorrect-all).
332
330
  Style/SlicingWithRange:
333
331
  Exclude:
334
- - 'lib/maid/tools.rb'
332
+ - "lib/maid/tools.rb"
335
333
 
336
334
  # Offense count: 1
337
335
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -345,16 +343,16 @@ Style/SpecialGlobalVars:
345
343
  # Configuration parameters: Mode.
346
344
  Style/StringConcatenation:
347
345
  Exclude:
348
- - 'lib/maid/tools.rb'
349
- - 'lib/maid/trash_migration.rb'
350
- - 'spec/dependency_spec.rb'
351
- - 'spec/lib/maid/tools_spec.rb'
346
+ - "lib/maid/tools.rb"
347
+ - "lib/maid/trash_migration.rb"
348
+ - "spec/dependency_spec.rb"
349
+ - "spec/lib/maid/tools_spec.rb"
352
350
 
353
351
  # Offense count: 1
354
352
  # This cop supports unsafe autocorrection (--autocorrect-all).
355
353
  Style/StructInheritance:
356
354
  Exclude:
357
- - 'lib/maid/rule.rb'
355
+ - "lib/maid/rule.rb"
358
356
 
359
357
  # Offense count: 4
360
358
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -362,11 +360,11 @@ Style/StructInheritance:
362
360
  # AllowedMethods: define_method
363
361
  Style/SymbolProc:
364
362
  Exclude:
365
- - 'lib/maid/tools.rb'
366
- - 'spec/dependency_spec.rb'
363
+ - "lib/maid/tools.rb"
364
+ - "spec/dependency_spec.rb"
367
365
 
368
366
  # Offense count: 4
369
367
  # This cop supports unsafe autocorrection (--autocorrect-all).
370
368
  Style/ZeroLengthPredicate:
371
369
  Exclude:
372
- - 'lib/maid/tools.rb'
370
+ - "lib/maid/tools.rb"