Skip to content

Commit

Permalink
Update verify.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengroat authored Sep 18, 2016
1 parent 5ab3e01 commit ff0f4cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ def test_tag(tag, required, tfa_state, website, only_true = false)
" a value set to \'Yes\' or not be used at all. (Current value:"\
" \'#{website[tag]}\')") if only_true && website[tag] != true
end
# rubocop:enable CyclomaticComplexity,PerceivedComplexity
# rubocop:enable PerceivedComplexity

# Check the YAML tags
def test_tags(website)
tfa = website['tfa']
# rubocop:disable DoubleNegation
error("#{website['name']}: The YAML tag \'{tfa}\' should be either "\
"\'Yes\' or \'No\'. (#{tfa})") if !!tfa != tfa
# rubocop:endable DoubleNegation

# Test tags that are obligatory
@obligatory_tags.each do |t|
Expand Down Expand Up @@ -94,7 +95,7 @@ def test_img(img, name, imgs)
error("#{img} should not be larger than #{@img_max_size} bytes. It is"\
" currently #{img_size} bytes.") unless img_size <= @img_max_size
end
# rubocop:enable AbcSize
# rubocop:enable AbcSize,CyclomaticComplexity

begin

Expand Down

0 comments on commit ff0f4cf

Please sign in to comment.