You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a comment describing each gem in your Gemfile.
Optionally, the "OnlyWhenUsingAnyOf" configuration
can be used to only register offenses when the gems
use certain options or have version specifiers.
Add "with_version_specifiers" and/or the option names
(e.g. 'required', 'github', etc) you want to check.
Examples
OnlyWhenUsingAnyOf: [] (default)
# badgem'foo'# good# Helpers for the foo things.gem'foo'
# badgem'foo',github: 'some_account/some_fork_of_foo'gem'bar','< 2.1'# good# Using this fork because bazgem'foo',github: 'some_account/some_fork_of_foo'# Version 2.1 introduces breaking change bazgem'bar','< 2.1'
Configurable attributes
Name
Default value
Configurable values
Include
**/*.gemfile, **/Gemfile, **/gems.rb
Array
IgnoredGems
[]
Array
OnlyWhenUsingAnyOf
[]
Array
Bundler/InsecureProtocolSource
Enabled by default
Safe
Supports autocorrection
VersionAdded
VersionChanged
Enabled
Yes
Yes
0.50
-
The symbol argument :gemcutter, :rubygems, and :rubyforge
are deprecated. So please change your source to URL string that
'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
This autocorrect will replace these symbols with 'https://rubygems.org'.
Because it is secure, HTTPS request is strongly recommended. And in
most use cases HTTPS will be fine.
However, it don't replace all sources of http:// with https://.
For example, when specifying an internal gem server using HTTP on the
intranet, a use case where HTTPS cannot be specified was considered.
Consider using HTTP only if you cannot use HTTPS.
Gems should be alphabetically sorted within groups.
Examples
# badgem'rubocop'gem'rspec'# goodgem'rspec'gem'rubocop'# goodgem'rubocop'gem'rspec'# good only if TreatCommentsAsGroupSeparators is true# For code qualitygem'rubocop'# For testsgem'rspec'