class Precheck::NegativeAppleSentimentRule

Public Class Methods

description() click to toggle source
# File precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb, line 17
def self.description
  "mentioning  in a way that could be considered negative"
end
env_name() click to toggle source
# File precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb, line 9
def self.env_name
  "RULE_NEGATIVE_APPLE_SENTIMENT"
end
friendly_name() click to toggle source
# File precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb, line 13
def self.friendly_name
  "No negative  sentiment"
end
key() click to toggle source
# File precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb, line 5
def self.key
  :negative_apple_sentiment
end

Public Instance Methods

lowercased_words_to_look_for() click to toggle source
# File precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb, line 21
def lowercased_words_to_look_for
  [
    "ios",
    "macos",
    "safari",
    "webkit",
    "uikit",
    "apple store"
  ].map { |word| (word + " bug").downcase } +
    [
      "slow iphone",
      "slow ipad",
      "old iphone"
    ]
end