Skip to content

Enable Rubocop IndentationWidth cop#6395

Merged
aduth merged 5 commits intomainfrom
aduth-rubocop-indentation
May 24, 2022
Merged

Enable Rubocop IndentationWidth cop#6395
aduth merged 5 commits intomainfrom
aduth-rubocop-indentation

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 23, 2022

Why: So that we can more easily ensure consistent indentation, improving readability.

Most of this is pretty straight-forward. The one notable exception is conditional assignment, which expects indentation of the next line to match the assignment operator, leading to some tight column width constraints. For a few of these, I refactored them to ternaries, which don't have the same expectation of alignment to the assignment operator.

Certainly easiest to review with whitespace changes hidden: https://github.com/18F/identity-idp/pull/6395/files?w=1

**Why**: So that we can more easily ensure consistent indentation, improving readability.

changelog: Internal, Code Quality, Apply and enforce consistent code indentation
@aduth aduth force-pushed the aduth-rubocop-indentation branch from 1267c27 to 0301595 Compare May 23, 2022 12:28
Comment on lines +624 to +628
track_event(
'IdV: USPS address visited',
letter_already_sent: letter_already_sent,
**extra,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good catch 👍

aduth and others added 2 commits May 23, 2022 15:17
To address indentation constraints

Co-Authored-By: Zach Margolis <zbmargolis@gmail.com>
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit 826e5a2 into main May 24, 2022
@aduth aduth deleted the aduth-rubocop-indentation branch May 24, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants