Sha256: de4917e7e83ecb9f53be3ee47fdada3e077bee1717893578040df2efd3223964

Contents?: true

Size: 687 Bytes

Versions: 12

Compression:

Stored size: 687 Bytes

Contents


require 'cocoapods-mtxx-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

12 entries across 12 versions & 1 rubygems

Version Path
cocoapods-mtxx-bin-1.0.0 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.13 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.12 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.10 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.9.1 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.9 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.8 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.7 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.6 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.4 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.3 lib/cocoapods-mtxx-bin/native/linter.rb
cocoapods-mtxx-bin-0.0.1 lib/cocoapods-mtxx-bin/native/linter.rb