Sha256: 29107476618597c43c16ce5fa40c7344df8e9d582c5defefb21558359aa2ce1a
Contents?: true
Size: 526 Bytes
Versions: 3
Compression:
Stored size: 526 Bytes
Contents
require 'yaml' require 'hound/tools/template' module Hound module Tools class RubocopYml include Template def initialize super '.rubocop.yml' end private def _validate(data) config = YAML.load(data) inherited = config['inherit_from'] fail InvalidTemplate, "No 'inherit_from' section" unless inherited file = '.hound/defaults.yml' fail InvalidTemplate, "'#{file}' not inherited" unless inherited.include?(file) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hound-tools-0.0.6 | lib/hound/tools/rubocop_yml.rb |
hound-tools-0.0.5 | lib/hound/tools/rubocop_yml.rb |
hound-tools-0.0.4 | lib/hound/tools/rubocop_yml.rb |