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

Version Path
cocoapods-fy-bin-0.1.1 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.0 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.9 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.8 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.7 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.6 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.5 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.4 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.3 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.2 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.0.1 lib/cocoapods-fy-bin/native/linter.rb