timecop-rspec 1.0.2 → 1.0.4

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 (157) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +182 -8
  4. data/LICENSE.md +11 -0
  5. data/README.md +283 -241
  6. data/lib/timecop/rspec/version.rb +7 -7
  7. data/lib/timecop/rspec.rb +1 -1
  8. data/sig/timecop/rspec.rbs +2 -0
  9. data.tar.gz.sig +0 -0
  10. metadata +472 -423
  11. metadata.gz.sig +0 -0
  12. data/.devcontainer/devcontainer.json +0 -26
  13. data/.env.local.example +0 -3
  14. data/.envrc +0 -41
  15. data/.github/FUNDING.yml +0 -13
  16. data/.github/dependabot.yml +0 -12
  17. data/.github/workflows/ancient.yml +0 -77
  18. data/.github/workflows/auto-assign.yml +0 -21
  19. data/.github/workflows/codeql-analysis.yml +0 -70
  20. data/.github/workflows/coverage.yml +0 -126
  21. data/.github/workflows/current.yml +0 -85
  22. data/.github/workflows/dependency-review.yml +0 -20
  23. data/.github/workflows/deps_locked.yml +0 -85
  24. data/.github/workflows/deps_unlocked.yml +0 -84
  25. data/.github/workflows/discord-notifier.yml +0 -38
  26. data/.github/workflows/heads.yml +0 -84
  27. data/.github/workflows/jruby.yml +0 -75
  28. data/.github/workflows/legacy.yml +0 -67
  29. data/.github/workflows/style.yml +0 -64
  30. data/.github/workflows/supported.yml +0 -82
  31. data/.github/workflows/truffle.yml +0 -75
  32. data/.github/workflows/unsupported.yml +0 -75
  33. data/.gitignore +0 -45
  34. data/.gitlab-ci.yml +0 -44
  35. data/.idea/.gitignore +0 -8
  36. data/.idea/GitLink.xml +0 -6
  37. data/.idea/misc.xml +0 -4
  38. data/.idea/modules.xml +0 -8
  39. data/.idea/timecop-rspec.iml +0 -122
  40. data/.idea/vcs.xml +0 -6
  41. data/.junie/TASK_NOTE.md +0 -1
  42. data/.junie/guidelines.md +0 -139
  43. data/.qlty/qlty.toml +0 -79
  44. data/.rspec +0 -8
  45. data/.rubocop.yml +0 -15
  46. data/.rubocop_gradual.lock +0 -76
  47. data/.simplecov +0 -11
  48. data/.tool-versions +0 -1
  49. data/.yard_gfm_support.rb +0 -22
  50. data/.yardopts +0 -11
  51. data/Appraisal.root.gemfile +0 -12
  52. data/Appraisals +0 -104
  53. data/CITATION.cff +0 -20
  54. data/CNAME +0 -1
  55. data/CODE_OF_CONDUCT.md +0 -134
  56. data/CONTRIBUTING.md +0 -143
  57. data/Gemfile +0 -38
  58. data/Gemfile.lock +0 -293
  59. data/LICENSE.txt +0 -22
  60. data/REEK +0 -0
  61. data/RUBOCOP.md +0 -71
  62. data/Rakefile +0 -324
  63. data/SECURITY.md +0 -21
  64. data/bin/appraisal +0 -16
  65. data/bin/bundle-audit +0 -16
  66. data/bin/bundler-audit +0 -16
  67. data/bin/code_climate_reek +0 -16
  68. data/bin/coderay +0 -16
  69. data/bin/console +0 -11
  70. data/bin/erb +0 -16
  71. data/bin/gem_checksums +0 -16
  72. data/bin/htmldiff +0 -16
  73. data/bin/irb +0 -16
  74. data/bin/kramdown +0 -16
  75. data/bin/ldiff +0 -16
  76. data/bin/nokogiri +0 -16
  77. data/bin/pry +0 -16
  78. data/bin/racc +0 -16
  79. data/bin/rake +0 -16
  80. data/bin/rdbg +0 -16
  81. data/bin/rdoc +0 -16
  82. data/bin/reek +0 -16
  83. data/bin/ri +0 -16
  84. data/bin/rspec +0 -16
  85. data/bin/rubocop +0 -16
  86. data/bin/rubocop-gradual +0 -16
  87. data/bin/ruby-parse +0 -16
  88. data/bin/ruby-rewrite +0 -16
  89. data/bin/setup +0 -7
  90. data/bin/standardrb +0 -16
  91. data/bin/thor +0 -16
  92. data/bin/yard +0 -16
  93. data/bin/yard-junk +0 -16
  94. data/bin/yardoc +0 -16
  95. data/bin/yri +0 -16
  96. data/certs/pboling.pem +0 -27
  97. data/checksums/timecop-rspec-1.0.0.gem.sha256 +0 -1
  98. data/checksums/timecop-rspec-1.0.0.gem.sha512 +0 -1
  99. data/checksums/timecop-rspec-1.0.1.gem.sha256 +0 -1
  100. data/checksums/timecop-rspec-1.0.1.gem.sha512 +0 -1
  101. data/checksums/timecop-rspec-1.0.2.gem.sha256 +0 -1
  102. data/checksums/timecop-rspec-1.0.2.gem.sha512 +0 -1
  103. data/docs/Timecop/Rspec/ExampleDecorator.html +0 -626
  104. data/docs/Timecop/Rspec/SequentialTimeMachine.html +0 -338
  105. data/docs/Timecop/Rspec/TimeMachine.html +0 -357
  106. data/docs/Timecop/Rspec/TravelLog.html +0 -440
  107. data/docs/Timecop/Rspec/Traveler.html +0 -353
  108. data/docs/Timecop/Rspec/Version.html +0 -154
  109. data/docs/Timecop/Rspec.html +0 -476
  110. data/docs/Timecop.html +0 -143
  111. data/docs/_index.html +0 -230
  112. data/docs/class_list.html +0 -54
  113. data/docs/css/common.css +0 -1
  114. data/docs/css/full_list.css +0 -58
  115. data/docs/css/style.css +0 -503
  116. data/docs/file.CHANGELOG.html +0 -130
  117. data/docs/file.CITATION.html +0 -92
  118. data/docs/file.CODE_OF_CONDUCT.html +0 -201
  119. data/docs/file.CONTRIBUTING.html +0 -218
  120. data/docs/file.LICENSE.html +0 -70
  121. data/docs/file.README.html +0 -545
  122. data/docs/file.REEK.html +0 -71
  123. data/docs/file.RUBOCOP.html +0 -171
  124. data/docs/file.SECURITY.html +0 -101
  125. data/docs/file.rspec.html +0 -109
  126. data/docs/file.timecop-rspec-1.0.0.gem.html +0 -71
  127. data/docs/file.timecop-rspec-1.0.1.gem.html +0 -71
  128. data/docs/file.timecop.html +0 -72
  129. data/docs/file_list.html +0 -129
  130. data/docs/frames.html +0 -22
  131. data/docs/index.html +0 -545
  132. data/docs/js/app.js +0 -344
  133. data/docs/js/full_list.js +0 -242
  134. data/docs/js/jquery.js +0 -4
  135. data/docs/method_list.html +0 -198
  136. data/docs/top-level-namespace.html +0 -110
  137. data/gemfiles/audit.gemfile +0 -10
  138. data/gemfiles/coverage.gemfile +0 -10
  139. data/gemfiles/current.gemfile +0 -8
  140. data/gemfiles/deps_unlocked.gemfile +0 -13
  141. data/gemfiles/head.gemfile +0 -9
  142. data/gemfiles/modular/audit.gemfile +0 -5
  143. data/gemfiles/modular/coverage.gemfile +0 -6
  144. data/gemfiles/modular/documentation.gemfile +0 -11
  145. data/gemfiles/modular/style.gemfile +0 -14
  146. data/gemfiles/ruby_2_3.gemfile +0 -5
  147. data/gemfiles/ruby_2_4.gemfile +0 -5
  148. data/gemfiles/ruby_2_5.gemfile +0 -5
  149. data/gemfiles/ruby_2_6.gemfile +0 -8
  150. data/gemfiles/ruby_2_7.gemfile +0 -8
  151. data/gemfiles/ruby_3_0.gemfile +0 -8
  152. data/gemfiles/ruby_3_1.gemfile +0 -8
  153. data/gemfiles/ruby_3_2.gemfile +0 -8
  154. data/gemfiles/ruby_3_3.gemfile +0 -8
  155. data/gemfiles/style.gemfile +0 -10
  156. data/sig/timecop.rbs +0 -2
  157. data/timecop-rspec.gemspec +0 -149
data/Gemfile.lock DELETED
@@ -1,293 +0,0 @@
1
- GIT
2
- remote: https://github.com/pboling/yard-junk
3
- revision: 54ccebabbfa9a9cd44d0b991687ebbfd22c32b55
4
- branch: next
5
- specs:
6
- yard-junk (0.0.10)
7
- backports (>= 3.18)
8
- benchmark
9
- ostruct
10
- rainbow
11
- yard
12
-
13
- PATH
14
- remote: .
15
- specs:
16
- timecop-rspec (1.0.2)
17
- delegate (~> 0.1)
18
- rspec (~> 3.0)
19
- timecop (>= 0.7, < 1)
20
-
21
- GEM
22
- remote: https://rubygems.org/
23
- specs:
24
- ansi (1.5.0)
25
- appraisal2 (3.0.0)
26
- bundler (>= 1.17.3)
27
- rake (>= 10)
28
- thor (>= 0.14)
29
- ast (2.4.3)
30
- backports (3.25.1)
31
- benchmark (0.4.1)
32
- bigdecimal (3.2.2)
33
- bundler-audit (0.9.2)
34
- bundler (>= 1.2.0, < 3)
35
- thor (~> 1.0)
36
- coderay (1.1.3)
37
- concurrent-ruby (1.3.5)
38
- date (3.4.1)
39
- debug (1.11.0)
40
- irb (~> 1.10)
41
- reline (>= 0.3.8)
42
- delegate (0.4.0)
43
- diff-lcs (1.6.2)
44
- diffy (3.4.4)
45
- docile (1.4.1)
46
- dry-configurable (1.3.0)
47
- dry-core (~> 1.1)
48
- zeitwerk (~> 2.6)
49
- dry-core (1.1.0)
50
- concurrent-ruby (~> 1.0)
51
- logger
52
- zeitwerk (~> 2.6)
53
- dry-inflector (1.2.0)
54
- dry-initializer (3.2.0)
55
- dry-logic (1.6.0)
56
- bigdecimal
57
- concurrent-ruby (~> 1.0)
58
- dry-core (~> 1.1)
59
- zeitwerk (~> 2.6)
60
- dry-schema (1.14.1)
61
- concurrent-ruby (~> 1.0)
62
- dry-configurable (~> 1.0, >= 1.0.1)
63
- dry-core (~> 1.1)
64
- dry-initializer (~> 3.2)
65
- dry-logic (~> 1.5)
66
- dry-types (~> 1.8)
67
- zeitwerk (~> 2.6)
68
- dry-types (1.8.3)
69
- bigdecimal (~> 3.0)
70
- concurrent-ruby (~> 1.0)
71
- dry-core (~> 1.0)
72
- dry-inflector (~> 1.0)
73
- dry-logic (~> 1.4)
74
- zeitwerk (~> 2.6)
75
- erb (5.0.2)
76
- gem_bench (2.0.5)
77
- bundler (>= 1.14)
78
- version_gem (~> 1.1, >= 1.1.4)
79
- io-console (0.8.1)
80
- irb (1.15.2)
81
- pp (>= 0.6.0)
82
- rdoc (>= 4.0.0)
83
- reline (>= 0.4.2)
84
- json (2.13.2)
85
- kettle-soup-cover (1.0.10)
86
- simplecov (~> 0.22)
87
- simplecov-cobertura (~> 3.0)
88
- simplecov-console (~> 0.9, >= 0.9.3)
89
- simplecov-html (~> 0.13, >= 0.13.1)
90
- simplecov-lcov (~> 0.8)
91
- simplecov-rcov (~> 0.3, >= 0.3.7)
92
- simplecov_json_formatter (~> 0.1, >= 0.1.4)
93
- version_gem (~> 1.1, >= 1.1.8)
94
- kramdown (2.5.1)
95
- rexml (>= 3.3.9)
96
- kramdown-parser-gfm (1.1.0)
97
- kramdown (~> 2.0)
98
- language_server-protocol (3.17.0.5)
99
- lint_roller (1.1.0)
100
- logger (1.7.0)
101
- method_source (1.1.0)
102
- nokogiri (1.18.9-x86_64-linux-gnu)
103
- racc (~> 1.4)
104
- ostruct (0.6.3)
105
- parallel (1.27.0)
106
- parser (3.3.9.0)
107
- ast (~> 2.4.1)
108
- racc
109
- pp (0.6.2)
110
- prettyprint
111
- prettyprint (0.2.0)
112
- prism (1.4.0)
113
- pry (0.15.2)
114
- coderay (~> 1.1)
115
- method_source (~> 1.0)
116
- psych (5.2.6)
117
- date
118
- stringio
119
- racc (1.8.1)
120
- rainbow (3.1.1)
121
- rake (13.3.0)
122
- rdoc (6.14.2)
123
- erb
124
- psych (>= 4.0.0)
125
- reek (6.5.0)
126
- dry-schema (~> 1.13)
127
- logger (~> 1.6)
128
- parser (~> 3.3.0)
129
- rainbow (>= 2.0, < 4.0)
130
- rexml (~> 3.1)
131
- regexp_parser (2.11.2)
132
- reline (0.6.2)
133
- io-console (~> 0.5)
134
- rexml (3.4.1)
135
- rspec (3.13.1)
136
- rspec-core (~> 3.13.0)
137
- rspec-expectations (~> 3.13.0)
138
- rspec-mocks (~> 3.13.0)
139
- rspec-block_is_expected (1.0.6)
140
- rspec-core (3.13.5)
141
- rspec-support (~> 3.13.0)
142
- rspec-expectations (3.13.5)
143
- diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.13.0)
145
- rspec-mocks (3.13.5)
146
- diff-lcs (>= 1.2.0, < 2.0)
147
- rspec-support (~> 3.13.0)
148
- rspec-stubbed_env (1.0.4)
149
- rspec-support (3.13.4)
150
- rspec_junit_formatter (0.6.0)
151
- rspec-core (>= 2, < 4, != 2.12.0)
152
- rubocop (1.75.8)
153
- json (~> 2.3)
154
- language_server-protocol (~> 3.17.0.2)
155
- lint_roller (~> 1.1.0)
156
- parallel (~> 1.10)
157
- parser (>= 3.3.0.2)
158
- rainbow (>= 2.2.2, < 4.0)
159
- regexp_parser (>= 2.9.3, < 3.0)
160
- rubocop-ast (>= 1.44.0, < 2.0)
161
- ruby-progressbar (~> 1.7)
162
- unicode-display_width (>= 2.4.0, < 4.0)
163
- rubocop-ast (1.46.0)
164
- parser (>= 3.3.7.2)
165
- prism (~> 1.4)
166
- rubocop-gradual (0.3.6)
167
- diff-lcs (>= 1.2.0, < 2.0)
168
- diffy (~> 3.0)
169
- parallel (~> 1.10)
170
- rainbow (>= 2.2.2, < 4.0)
171
- rubocop (~> 1.0)
172
- rubocop-lts (0.1.1)
173
- rubocop-ruby1_8 (>= 1.0.5, < 2)
174
- standard-rubocop-lts (>= 1.0.3, < 3)
175
- version_gem (>= 1.1.2, < 3)
176
- rubocop-md (1.2.4)
177
- rubocop (>= 1.45)
178
- rubocop-packaging (0.6.0)
179
- lint_roller (~> 1.1.0)
180
- rubocop (>= 1.72.1, < 2.0)
181
- rubocop-performance (1.25.0)
182
- lint_roller (~> 1.1)
183
- rubocop (>= 1.75.0, < 2.0)
184
- rubocop-ast (>= 1.38.0, < 2.0)
185
- rubocop-rake (0.7.1)
186
- lint_roller (~> 1.1)
187
- rubocop (>= 1.72.1)
188
- rubocop-rspec (3.6.0)
189
- lint_roller (~> 1.1)
190
- rubocop (~> 1.72, >= 1.72.1)
191
- rubocop-ruby1_8 (1.0.7)
192
- rubocop-gradual (~> 0.3, >= 0.3.1)
193
- rubocop-md (~> 1.2)
194
- rubocop-rake (~> 0.6)
195
- rubocop-shopify (~> 2.14)
196
- rubocop-thread_safety (~> 0.5, >= 0.5.1)
197
- standard-rubocop-lts (~> 1.0, >= 1.0.7)
198
- version_gem (>= 1.1.3, < 3)
199
- rubocop-shopify (2.17.1)
200
- rubocop (~> 1.62)
201
- rubocop-thread_safety (0.7.3)
202
- lint_roller (~> 1.1)
203
- rubocop (~> 1.72, >= 1.72.1)
204
- rubocop-ast (>= 1.44.0, < 2.0)
205
- ruby-progressbar (1.13.0)
206
- silent_stream (1.0.11)
207
- logger (~> 1.2)
208
- version_gem (>= 1.1.8, < 3)
209
- simplecov (0.22.0)
210
- docile (~> 1.1)
211
- simplecov-html (~> 0.11)
212
- simplecov_json_formatter (~> 0.1)
213
- simplecov-cobertura (3.0.0)
214
- rexml
215
- simplecov (~> 0.19)
216
- simplecov-console (0.9.4)
217
- ansi
218
- simplecov
219
- terminal-table
220
- simplecov-html (0.13.2)
221
- simplecov-lcov (0.8.0)
222
- simplecov-rcov (0.3.7)
223
- simplecov (>= 0.4.1)
224
- simplecov_json_formatter (0.1.4)
225
- standard (1.50.0)
226
- language_server-protocol (~> 3.17.0.2)
227
- lint_roller (~> 1.0)
228
- rubocop (~> 1.75.5)
229
- standard-custom (~> 1.0.0)
230
- standard-performance (~> 1.8)
231
- standard-custom (1.0.2)
232
- lint_roller (~> 1.0)
233
- rubocop (~> 1.50)
234
- standard-performance (1.8.0)
235
- lint_roller (~> 1.1)
236
- rubocop-performance (~> 1.25.0)
237
- standard-rubocop-lts (1.0.10)
238
- rspec-block_is_expected (~> 1.0, >= 1.0.5)
239
- standard (>= 1.35.1, < 2)
240
- standard-custom (>= 1.0.2, < 2)
241
- standard-performance (>= 1.3.1, < 2)
242
- version_gem (>= 1.1.4, < 3)
243
- stone_checksums (1.0.0)
244
- version_gem (>= 1.1.5, < 3)
245
- stringio (3.1.7)
246
- terminal-table (4.0.0)
247
- unicode-display_width (>= 1.1.1, < 4)
248
- thor (1.4.0)
249
- timecop (0.9.10)
250
- unicode-display_width (3.1.5)
251
- unicode-emoji (~> 4.0, >= 4.0.4)
252
- unicode-emoji (4.0.4)
253
- version_gem (1.1.8)
254
- yard (0.9.37)
255
- yard-relative_markdown_links (0.5.0)
256
- nokogiri (>= 1.14.3, < 2)
257
- zeitwerk (2.7.3)
258
-
259
- PLATFORMS
260
- x86_64-linux
261
-
262
- DEPENDENCIES
263
- appraisal2 (~> 3.0)
264
- benchmark (~> 0.4, >= 0.4.1)
265
- bundler-audit (~> 0.9.2)
266
- debug (>= 1.0.0)
267
- gem_bench (~> 2.0, >= 2.0.5)
268
- kettle-soup-cover (~> 1.0, >= 1.0.6)
269
- kramdown (~> 2.5, >= 2.5.1)
270
- kramdown-parser-gfm (~> 1.1)
271
- logger
272
- pry (~> 0.14)
273
- rake (~> 13.0)
274
- rdoc (~> 6.11)
275
- reek (~> 6.4)
276
- rspec-block_is_expected (~> 1.0)
277
- rspec-stubbed_env (~> 1.0)
278
- rspec_junit_formatter (~> 0.6)
279
- rubocop (~> 1.73, >= 1.73.2)
280
- rubocop-lts (~> 0.1, >= 0.1.1)
281
- rubocop-packaging (~> 0.6, >= 0.6.0)
282
- rubocop-rspec (~> 3.2)
283
- silent_stream (~> 1.0, >= 1.0.11)
284
- standard (>= 1.50)
285
- stone_checksums (~> 1.0)
286
- timecop (~> 0.9, >= 0.9.10)
287
- timecop-rspec!
288
- yard (~> 0.9, >= 0.9.37)
289
- yard-junk (~> 0.0, >= 0.0.10)!
290
- yard-relative_markdown_links (~> 0.5.0)
291
-
292
- BUNDLED WITH
293
- 2.7.1
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 Peter H. Boling
4
- Copyright (c) 2014-2017 Zach Taylor & Avant
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
data/REEK DELETED
File without changes
data/RUBOCOP.md DELETED
@@ -1,71 +0,0 @@
1
- # RuboCop Usage Guide
2
-
3
- ## Overview
4
-
5
- A tale of two RuboCop plugin gems.
6
-
7
- ### RuboCop Gradual
8
-
9
- This project uses `rubocop_gradual` instead of vanilla RuboCop for code style checking. The `rubocop_gradual` tool allows for gradual adoption of RuboCop rules by tracking violations in a lock file.
10
-
11
- ### RuboCop LTS
12
-
13
- This project uses `rubocop-lts` to ensure, on a best-effort basis, compatibility with Ruby >= 1.9.2.
14
- RuboCop rules are meticulously configured by the `rubocop-lts` family of gems to ensure that a project is compatible with a specific version of Ruby. See: https://rubocop-lts.gitlab.io for more.
15
-
16
- ## Checking RuboCop Violations
17
-
18
- To check for RuboCop violations in this project, always use:
19
-
20
- ```bash
21
- bundle exec rake rubocop_gradual:check
22
- ```
23
-
24
- **Do not use** the standard RuboCop commands like:
25
- - `bundle exec rubocop`
26
- - `rubocop`
27
-
28
- ## Understanding the Lock File
29
-
30
- The `.rubocop_gradual.lock` file tracks all current RuboCop violations in the project. This allows the team to:
31
-
32
- 1. Prevent new violations while gradually fixing existing ones
33
- 2. Track progress on code style improvements
34
- 3. Ensure CI builds don't fail due to pre-existing violations
35
-
36
- ## Common Commands
37
-
38
- - **Check violations**
39
- - `bundle exec rake rubocop_gradual`
40
- - `bundle exec rake rubocop_gradual:check`
41
- - **(Safe) Autocorrect violations, and update lockfile if no new violations**
42
- - `bundle exec rake rubocop_gradual:autocorrect`
43
- - **Force update the lock file (w/o autocorrect) to match violations present in code**
44
- - `bundle exec rake rubocop_gradual:force_update`
45
-
46
- ## Workflow
47
-
48
- 1. Before submitting a PR, run `bundle exec rake rubocop_gradual:autocorrect`
49
- a. or just the default `bundle exec rake`, as autocorrection is a pre-requisite of the default task.
50
- 2. If there are new violations, either:
51
- - Fix them in your code
52
- - Run `bundle exec rake rubocop_gradual:force_update` to update the lock file (only for violations you can't fix immediately)
53
- 3. Commit the updated `.rubocop_gradual.lock` file along with your changes
54
-
55
- ## Never add inline RuboCop disables
56
-
57
- Do not add inline `rubocop:disable` / `rubocop:enable` comments anywhere in the codebase (including specs, except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). We handle exceptions in two supported ways:
58
-
59
- - Permanent/structural exceptions: prefer adjusting the RuboCop configuration (e.g., in `.rubocop.yml`) to exclude a rule for a path or file pattern when it makes sense project-wide.
60
- - Temporary exceptions while improving code: record the current violations in `.rubocop_gradual.lock` via the gradual workflow:
61
- - `bundle exec rake rubocop_gradual:autocorrect` (preferred; will autocorrect what it can and update the lock only if no new violations were introduced)
62
- - If needed, `bundle exec rake rubocop_gradual:force_update` (as a last resort when you cannot fix the newly reported violations immediately)
63
-
64
- In general, treat the rules as guidance to follow; fix violations rather than ignore them. For example, RSpec conventions in this project expect `described_class` to be used in specs that target a specific class under test.
65
-
66
- ## Benefits of rubocop_gradual
67
-
68
- - Allows incremental adoption of code style rules
69
- - Prevents CI failures due to pre-existing violations
70
- - Provides a clear record of code style debt
71
- - Enables focused efforts on improving code quality over time