Convertible#read_yaml: disable Metrics/AbcSize check

This commit is contained in:
Parker Moore 2016-08-30 14:39:49 -07:00
parent 9ddc12bad8
commit a78426f20d
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ module Jekyll
# opts - optional parameter to File.read, default at site configs
#
# Returns nothing.
# rubocop:disable Metrics/AbcSize
def read_yaml(base, name, opts = {})
filename = File.join(base, name)
@ -58,6 +59,7 @@ module Jekyll
self.data
end
# rubocop:enable Metrics/AbcSize
def validate_data!(filename)
unless self.data.is_a?(Hash)