Sha256: 5faf97497392909ed611b7e882b54a76ebe2d39099808298f762fbedf93ec7f0

Contents?: true

Size: 676 Bytes

Versions: 4

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

require "rubocop"
require_relative "valid_sigil"

module RuboCop
  module Cop
    module Sorbet
      # Makes the Sorbet typed sigil mandatory in all files.
      #
      # Options:
      #
      # * `SuggestedStrictness`: Sorbet strictness level suggested in offense messages (default: 'false')
      # * `MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
      #
      # If a `MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
      class HasSigil < ValidSigil
        def require_sigil_on_all_files?
          true
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-sorbet-0.8.7 lib/rubocop/cop/sorbet/sigils/has_sigil.rb
rubocop-sorbet-0.8.6 lib/rubocop/cop/sorbet/sigils/has_sigil.rb
rubocop-sorbet-0.8.5 lib/rubocop/cop/sorbet/sigils/has_sigil.rb
rubocop-sorbet-0.8.4 lib/rubocop/cop/sorbet/sigils/has_sigil.rb