Skip to content

Commit

Permalink
Indicate what MFA means in Gemspec/RequireMFA cop documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cbliard committed Mar 7, 2022
1 parent fed5c29 commit 47ec9de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/default.yml
Expand Up @@ -262,7 +262,7 @@ Gemspec/OrderedDependencies:
- '**/*.gemspec'

Gemspec/RequireMFA:
Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.'
Description: 'Checks that the gemspec has metadata to require Multi-Factor Authentication from RubyGems.'
Enabled: pending
VersionAdded: '1.23'
Reference:
Expand Down
7 changes: 4 additions & 3 deletions docs/modules/ROOT/pages/cops_gemspec.adoc
Expand Up @@ -195,9 +195,10 @@ spec.add_dependency 'rspec'

Requires a gemspec to have `rubygems_mfa_required` metadata set.

This setting tells RubyGems that MFA is required for accounts to
be able perform privileged operations, such as (see
RubyGems' documentation for the full list of privileged operations):
This setting tells RubyGems that MFA (Multi-Factor Authentication) is
required for accounts to be able perform privileged operations, such as
(see RubyGems' documentation for the full list of privileged
operations):

* `gem push`
* `gem yank`
Expand Down
7 changes: 4 additions & 3 deletions lib/rubocop/cop/gemspec/require_mfa.rb
Expand Up @@ -5,9 +5,10 @@ module Cop
module Gemspec
# Requires a gemspec to have `rubygems_mfa_required` metadata set.
#
# This setting tells RubyGems that MFA is required for accounts to
# be able perform privileged operations, such as (see
# RubyGems' documentation for the full list of privileged operations):
# This setting tells RubyGems that MFA (Multi-Factor Authentication) is
# required for accounts to be able perform privileged operations, such as
# (see RubyGems' documentation for the full list of privileged
# operations):
#
# * `gem push`
# * `gem yank`
Expand Down

0 comments on commit 47ec9de

Please sign in to comment.