Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rubocop convention offenses #4597

Merged
merged 1 commit into from
Aug 9, 2021
Merged

Fix rubocop convention offenses #4597

merged 1 commit into from
Aug 9, 2021

Conversation

javierm
Copy link
Member

@javierm javierm commented Jul 26, 2021

References

Background

While we use Pronto to detect offenses in the lines changed in our pull requests, sometimes our changes introduce offenses in other lines, and we don't detect them.

Objectives

  • Make the code consistent with our conventions

@javierm javierm added the Linters Rubocop, ERB Lint, ESLint, SCSS-Lint, ... label Jul 26, 2021
@javierm javierm self-assigned this Jul 26, 2021
@javierm javierm added this to Reviewing in Consul Democracy via automation Jul 26, 2021
While we use Pronto to detect offenses in the lines changed in our pull
request, sometimes our changes introduce offenses in other lines, and we
don't detect them.

In commit 0488b37, we removed the only usage of the `heading` method
in a test, which caused a `RSpec/LetSetup` offense.

In commit 287c488, we changed some lines from `fill_in` to
`fill_in_ckeditor`. Some of these lines were aligned with the following
ones, which after that change had extra spacing for no reason.

Finally, in commit 8d38ed5 we added a line before two lines which had
their equals signs aligned. Since, after adding this line, the block was
no longer aligned, there was no reason for the extra space in one of the
lines.
Consul Democracy automation moved this from Reviewing to Testing Aug 9, 2021
@javierm javierm merged commit 72b9dbc into master Aug 9, 2021
Consul Democracy automation moved this from Testing to Release 1.4.0 Aug 9, 2021
@javierm javierm deleted the rubocop_offenses branch August 9, 2021 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linters Rubocop, ERB Lint, ESLint, SCSS-Lint, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants