Sha256: a6d095e86b035f37c20054929f99464a1ac94703a62006933b11f29119cccea1
Contents?: true
Size: 714 Bytes
Versions: 662
Compression:
Stored size: 714 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
662 entries across 662 versions & 5 rubygems