Skip to content

Fix some rubocop linting errors, fill in some files from new generated gem scaffolding#113

Merged
kamui merged 1 commit intomasterfrom
fix-lint
Feb 18, 2026
Merged

Fix some rubocop linting errors, fill in some files from new generated gem scaffolding#113
kamui merged 1 commit intomasterfrom
fix-lint

Conversation

@kamui
Copy link
Owner

@kamui kamui commented Feb 18, 2026

  • Fix some rubocop linting errors
  • Fill in some files from new generated gem scaffolding

@kamui kamui requested a review from Copilot February 18, 2026 17:17
@kamui kamui merged commit 9035787 into master Feb 18, 2026
19 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes rubocop linting errors and adds standard gem scaffolding files from modern gem generation templates. The changes modernize the codebase to align with current Ruby and rubocop best practices.

Changes:

  • Added # frozen_string_literal: true pragma to all Ruby files for improved performance
  • Updated rubocop configuration with modernized cop names (e.g., Layout/IndentArrayLayout/FirstArrayElementIndentation)
  • Added standard gem scaffolding files (bin/setup, bin/console, Rakefile, CODE_OF_CONDUCT.md, sig/retriable.rbs)
  • Fixed minor code style issues (trailing commas, string freeze removal, blank line spacing, require path)

Reviewed changes

Copilot reviewed 18 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
spec/support/exceptions.rb Added frozen_string_literal pragma
spec/spec_helper.rb Added frozen_string_literal pragma; removed .rb extension from require_relative
spec/retriable_spec.rb Added frozen_string_literal pragma; added trailing comma to hash argument
spec/exponential_backoff_spec.rb Added frozen_string_literal pragma
spec/config_spec.rb Added frozen_string_literal pragma
sig/retriable.rbs Added RBS type signature file for the Retriable module
retriable.gemspec Replaced # coding: utf-8 with # frozen_string_literal: true
lib/retriable/version.rb Added frozen_string_literal pragma; removed .freeze from VERSION string
lib/retriable/exponential_backoff.rb Added frozen_string_literal pragma
lib/retriable/core_ext/kernel.rb Added frozen_string_literal pragma
lib/retriable/config.rb Added frozen_string_literal pragma; added blank line for readability
lib/retriable.rb Added frozen_string_literal pragma; added blank lines for readability
bin/setup Added setup script for gem development environment
bin/console Added console script for interactive gem experimentation
Rakefile Added Rakefile with default tasks for spec and rubocop
Gemfile Added frozen_string_literal pragma; added rake gem dependency
CODE_OF_CONDUCT.md Added Code of Conduct document
CHANGELOG.md Documented the rubocop fixes
.rubocop.yml Updated cop names to modern versions; added new cop configurations
.rspec Added --color flag; added duplicate --require spec_helper

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

--require spec_helper
--format documentation
--color
--require spec_helper
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

The --require spec_helper option is duplicated on lines 1 and 3. Remove the duplicate on line 3 to avoid redundancy.

Suggested change
--require spec_helper

Copilot uses AI. Check for mistakes.
* When interpreting the words and actions of others, participants should always assume good intentions.
* Behaviour which can be reasonably considered harassment will not be tolerated.

If you have any concerns about behaviour within this project, please contact us at ["jack@jackchu.com"](mailto:"jack@jackchu.com").
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

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

The mailto link should not have quotes around the email address. Change ["jack@jackchu.com"](mailto:"jack@jackchu.com") to [jack@jackchu.com](mailto:jack@jackchu.com). The quotes break the mailto link formatting.

Suggested change
If you have any concerns about behaviour within this project, please contact us at ["jack@jackchu.com"](mailto:"jack@jackchu.com").
If you have any concerns about behaviour within this project, please contact us at [jack@jackchu.com](mailto:jack@jackchu.com).

Copilot uses AI. Check for mistakes.
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