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 offenses #2296

Merged
merged 3 commits into from
Dec 27, 2022
Merged

Conversation

ericproulx
Copy link
Contributor

This PR fixes some cops and enable some that were disabled.

rubocop command : rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 5000

  • Move metrics cops in rubocop
  • Fix Performance/CollectionLiteralInLoop
  • Fix Performance/MethodObjectAsBlock
  • Fix RSpec/ClassCheck
  • Fix RSpec/EmptyExampleGroup
  • Fix RSpec/IdenticalEqualityAssertion
  • Fix RSpec/IteratedExpectation
  • Fix RSpec/LetSetup
  • Fix Style/MagicCommentFormat
  • Fix Style/MapToHash
  • Fix Style/SafeNavigation
  • Fix Style/SlicingWithRange
  • Enabled Lint/ConstantDefinitionInBlock
  • Enabled Lint/EmptyBlock
  • Enabled RSpec/ContextWording
  • Enabled RSpec/FilePath
  • Enabled RSpec/LeakyConstantDeclaration
  • Enabled RSpec/NamedSubject

…e-limit 5000

Move metrics cops in rubocop
Fix Performance/CollectionLiteralInLoop
Fix Performance/MethodObjectAsBlock
Fix RSpec/ClassCheck
Fix RSpec/EmptyExampleGroup
Fix RSpec/IdenticalEqualityAssertion
Fix RSpec/IteratedExpectation
Fix RSpec/LetSetup
Fix Style/MagicCommentFormat
Fix Style/MapToHash
Fix Style/SafeNavigation
Fix Style/SlicingWithRange
Enabled Lint/ConstantDefinitionInBlock
Enabled Lint/EmptyBlock
Enabled RSpec/ContextWording
Enabled RSpec/FilePath
Enabled RSpec/LeakyConstantDeclaration
Enabled RSpec/NamedSubject
@ericproulx ericproulx marked this pull request as draft December 23, 2022 10:26
@dblock
Copy link
Member

dblock commented Dec 26, 2022

Get it to 🟢 and let's merge it!

@ericproulx ericproulx marked this pull request as ready for review December 27, 2022 10:27
@ericproulx
Copy link
Contributor Author

I re-runned everything and it's 🟢

@dblock dblock merged commit 02fd374 into ruby-grape:master Dec 27, 2022
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