Sha256: 11a6a337e37096774a8a452877fba23156d84377412f0473890e163e06620974

Contents?: true

Size: 686 Bytes

Versions: 38

Compression:

Stored size: 686 Bytes

Contents


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

38 entries across 38 versions & 2 rubygems

Version Path
cocoapods-aomi-bin-0.1.28 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.27 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.26 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.25 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.24 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.23 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.22 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.21 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.20 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.19 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.18 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.17 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.16 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.15 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.14 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.13 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.12 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.11 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.10 lib/cocoapods-lhj-bin/native/linter.rb
cocoapods-aomi-bin-0.1.9 lib/cocoapods-lhj-bin/native/linter.rb