Sha256: b87eb02406ec5896d3627f6b4b66a55930c693f0453a015e72d5be833675dd84
Contents?: true
Size: 758 Bytes
Versions: 12
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true require 'rubocop' require_relative 'valid_sigil' module RuboCop module Cop module Sorbet # This cop 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 @registry = Cop.registry # So we can properly subclass this cop def require_sigil_on_all_files? true end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems