Commit 30b09a3
committed
[Fix #2044] Fix unintended document changes caused by default Rake task
This PR fixes unintended document changes caused by default Rake task.
## Problem
The default task causes `RuboCop::Config` to end up in an unexpected state when
`internal_investigation` task is executed before `generate_cops_documentation` task.
This is due to the fact that plugins are already loaded when RuboCop is executed as
part of `internal_investigation`.
## Solution
This change preemptively determines whether configuration adjustments are necessary
based on whether `rubocop-rspec` plugin has already been loaded.
## Additional Information
Since this logic should ideally be encapsulated within `CopsDocumentationGenerator`,
it is expected to become unnecessary in the future once the API design and implementation of
`CopsDocumentationGenerator` class are complete. For now, this serves as a temporary workaround.
Fixes #2044.1 parent cd91408 commit 30b09a3
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments