Skip to content

googleapis/ruby-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c1b5dd7 · Feb 26, 2025

History

87 Commits
Jul 23, 2024
Feb 26, 2025
Aug 26, 2022
Oct 28, 2024
Aug 31, 2021
Oct 28, 2024
Sep 23, 2021
Nov 13, 2024
Oct 28, 2024
Jan 30, 2019
Jan 30, 2019
May 26, 2022
Jan 30, 2019
May 26, 2022
Jul 11, 2021
Apr 24, 2024
Oct 25, 2024
Apr 20, 2022
Jul 14, 2021

Ruby Style Guide

Installation

Run:

bundle add google-style --group development,test

Or, add this line to your Gemfile:

group :test, :development do
  gem "google-style"
end

Usage

Add the following to the top of your .rubocop.yml:

inherit_gem:
  google-style: google-style.yml

And run:

bundle exec rubocop

Versioning

For all 1.x.y gem versions, the target and required Ruby version will match the minor gem version. Hence, 1.26.y versions target and require Ruby 2.6. 1.30.y versions target and require Ruby 3.0, and so forth.

During a minor version bump, the rubocop dependency will be updated to the latest version, and we will enable new checks up to and including that version. Thus, code that passed using one minor version might not pass using the next. Hence, dependencies should generally follow the pattern ~> 1.x.y to pin to a specific minor version.

Contributing

Contributions to this library are always welcome and highly encouraged.

See the Contributing Guide for more information on how to get started.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See the Code of Conduct for more information.

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.