Sha256: 5d136cf887084d5b00354f3275dc460e7bb47bf2df5c88c8a6f2d936a0d1e3e4

Contents?: true

Size: 669 Bytes

Versions: 661

Compression:

Stored size: 669 Bytes

Contents

require_relative 'abstract_text_match_rule'

module Precheck
  class CustomTextRule < AbstractTextMatchRule
    attr_accessor :data

    def self.key
      :custom_text
    end

    def self.env_name
      "RULE_CUSTOM_TEXT"
    end

    def self.friendly_name
      "No user-specified words are included"
    end

    def self.description
      "mentioning any of the user-specified words passed to #{self.key}(data: [words])"
    end

    def needs_customization?
      return true
    end

    def lowercased_words_to_look_for
      return @data
    end

    def customize_with_data(data: nil)
      @data = data.map { |word| word.strip.downcase }
    end
  end
end

Version data entries

661 entries across 661 versions & 5 rubygems

Version Path
fastlane-2.226.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.225.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.224.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.223.1 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.223.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.222.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.221.1 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.221.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.220.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.219.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.218.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-security-patched-2.216.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.217.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.216.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.215.1 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.215.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-mercafacil-2.214.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.214.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.213.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.212.2 precheck/lib/precheck/rules/custom_text_rule.rb