Sha256: 9533a50f805012dff6fc84ae7a996af2e8ef090ad51fd1f8676509eafbc6845e

Contents?: true

Size: 686 Bytes

Versions: 32

Compression:

Stored size: 686 Bytes

Contents


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

32 entries across 32 versions & 1 rubygems

Version Path
cocoapods-tdf-bin-0.0.43 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.42 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.41 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.40 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.39 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.37 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.36 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.35 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.34 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.33 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.32 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.31 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.30 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.29 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.28 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.26 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.25 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.24 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.23 lib/cocoapods-tdf-bin/native/linter.rb
cocoapods-tdf-bin-0.0.22 lib/cocoapods-tdf-bin/native/linter.rb