Skip to content

[partner-portal-58] Enable rubocop #553

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

h-m-m
Copy link
Contributor

@h-m-m h-m-m commented Jun 9, 2025

Relevant Tickets or Conversations

#552

[identity-dev-docs] direct links to accordions should auto-expand — on GitLab

(Previously https://cm-jira.usa.gov/browse/LG-14871 )

Description of Changes

While working on #552 I found it useful to enable Rubocop.

Bumping Ruby to 3.4.x also helps make one Rubocop rule not strictly needed, see https://github.com/ruby/ruby/blob/master/doc/NEWS/NEWS-3.4.0.md

The changes in this PR are

  • bumping the version in .ruby-version
  • adding rubocop to the Gemfile
  • updating the Gemfile.lock for the above two items
  • adding a rubocop.yml file
  • cleaning up anything rubocop found

and, unrelated to the above items

  • adding some things to ignore to the Jekyll _config.yml file

@@ -44,10 +44,13 @@ exclude:
- .sass-cache/
- .jekyll-cache/
- assets/scss
- bin
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't currently used in this repo, but bundle binstubs might still be created locally depending on your dev env and should be ignored

@@ -2,22 +2,26 @@ source 'https://rubygems.org'

ruby File.read('.ruby-version').strip

gem 'csv'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bump in Ruby version changes where Ruby's CSV lives

@h-m-m h-m-m force-pushed the hmm/partner-portal-58/enable-rubocop branch from f038b39 to 7ef75d0 Compare June 9, 2025 15:36
@ajfarkas
Copy link
Contributor

ajfarkas commented Jun 9, 2025

I think this can be done under ticket Portal#144, for the purposes of tracking work.

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