Sha256: a2276ba389dc106872d181ffe19eff27bbdb3ab1c339d8eece5ae1cf50c76720
Contents?: true
Size: 685 Bytes
Versions: 31
Compression:
Stored size: 685 Bytes
Contents
require 'cocoapods-fy-bin/native/specification' module Pod class Specification class Linter # !@group Lint steps # Checks that the spec's root name matches the filename. # # @return [void] # def validate_root_name if spec.root.name && file acceptable_names = Specification::VALID_EXTNAME.map { |extname| "#{spec.root.name}#{extname}" } names_match = acceptable_names.include?(file.basename.to_s) unless names_match results.add_error('name', 'The name of the spec should match the ' \ 'name of the file.') end end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems