You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
0 commit comments