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.3.1 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.3.0 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.9 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.8 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.7 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.6 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.5 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.4 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.3 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.2 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.1 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.2.0 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.9 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.8 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.7 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.6 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.5 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.4 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.3 lib/cocoapods-fy-bin/native/linter.rb
cocoapods-fy-bin-0.1.2 lib/cocoapods-fy-bin/native/linter.rb