Now available: Flexible Gem Installation for RuboCop

Today, we introduce new ways to install gems for RuboCop analysis.

Currently, Sider allows you to install RuboCop plugins and configuration gems via the gems option in sideci.yml.

linter:
rubocop:
gems:
- name: "rubocop"
version: "0.63.1"
- name: "meowcop"
version: "1.17.0"

In addition to the above, Sider now supports the following two ways to install gems.

Alternate RubyGems Repository

You can select an alternate RubyGems repository as a gem source via the source option.

linter:
rubocop:
gems:
- name: "project-cop"
version: "0.63.0"
source: "https://gems.example.com"

Git Repository

You can also install a gem in a Git repository. Please note that the git option cannot be specified with version or source.

linter:
rubocop:
gems:
- name: "owncop"
git:
repo: "https://github.com/myname/owncop.git"
branch: "master"
- name: "project-cop"
git:
repo: "git@github.com/org/project-cop.git"
tag: "v0.63.0"

The repo option is required, and you must specify one of the following:

  • branch
  • tag
  • ref

See documentation for details.

If you would like to install a gem located in a private Git repository, see private dependencies guide and configure your SSH key.

Aki Asahara

CEO of Sider. Aki joined Fixstars in 2008 and served major clients such as the US Airforce, MIT, USC, Toyota, and Hitachi High-technologies. After his successful tenure, he was appointed CEO of US operations in 2012. He was appointed CEO of Sider in 2019. He holds a Ph.D. in Astrophysics from Kyoto University and is a Certified Scrum Master.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.