Sha256: c1d1ff6de4762714ea8e500f9c997312fb61732cf1bbe74ed7f7a1e58b6c2163
Contents?: true
Size: 681 Bytes
Versions: 8
Compression:
Stored size: 681 Bytes
Contents
require 'cocoapods-tj/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
8 entries across 8 versions & 1 rubygems