Sha256: f9d3d96cd657958d376c82e776b8f687b9c5a2df4311871a36b8369c1608391d
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
require_relative 'abstract_text_match_rule' module Precheck class CopyrightDateRule < AbstractTextMatchRule def self.key :copyright_date end def self.env_name "RULE_COPYRIGHT_DATE" end def self.friendly_name "Incorrect, or missing copyright date" end def self.description "using a copyright date that is any different from this current year, or missing a date" end def pass_if_empty? return false end def supported_fields_symbol_set [:copyright].to_set end def word_search_type WORD_SEARCH_TYPES[:fail_on_exclusion] end def lowercased_words_to_look_for [DateTime.now.year.to_s] end end end
Version data entries
3 entries across 3 versions & 1 rubygems