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

Rubocop updates #455

Merged
merged 7 commits into from
Oct 16, 2024
Merged

Rubocop updates #455

merged 7 commits into from
Oct 16, 2024

Conversation

bobbrodie
Copy link
Member

There were a ton of cops disabled a while ago so we could implement Rubocop over time. I noticed that removing Openstruct usage in #454 resulted in some already existing issues bubbling up. This was not because of the changes in that PR, but rather stopping the cop from being disabled let us see. While cleaning that up, I tackled a few others.

The following have been re-enabled and the corresponding code cleaned up:

  • Layout/ClosingHeredocIndentation
  • Layout/EmptyLineAfterGuardClause
  • Layout/EmptyLinesAroundMethodBody
  • RSpec/SpecFilePathSuffix
  • Security/Open
  • Style/SymbolProc

Re-enabling RSpec/SpecFilePathSuffix was an important one because I discovered that the webhook spec was not running because its filename was missing _spec. Once enabled, I realized there was an issue with the REST path when it included /1.0/.

@bobbrodie bobbrodie requested a review from p-maguire October 15, 2024 03:13
@bobbrodie bobbrodie merged commit afef22a into sumoheavy:master Oct 16, 2024
6 checks passed
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.

2 participants