forked from rubocop/rubocop
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#7885] Consider Layout/IndentationStyle:EnforcedStyle
When calculating how wide the indentation is, we must look at the `EnforcedStyle` of the `Layout/IndentationStyle` cop. If it's `spaces`, then the indentation multiplier is 1. If it's `tabs` it's a bit more complicated, but that part was already handled correctly. The specs needed to be updated with correct configuration for all cases with `tabs` indentation. Whether or not we should consider the `Enabled` parameter is debatable. I've chosen to not care about `Enabled`, and to use the other parameter settings in any case.
- Loading branch information
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters