Sha256: c9e403e5af6a8fa7a15fa5703385fd7691afbc6bd040c10bd5dd61bfba679112

Contents?: true

Size: 688 Bytes

Versions: 16

Compression:

Stored size: 688 Bytes

Contents


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

16 entries across 16 versions & 1 rubygems

Version Path
cocoapods-meitu-bin-2.0.0 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.4.1 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.4.0 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.3.2 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.3.1 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.3.0 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.2.3 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.2.2 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.2.1 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.2.0 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.1.5 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.1.4 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.1.3 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.1.2 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.1.1 lib/cocoapods-meitu-bin/native/linter.rb
cocoapods-meitu-bin-1.0.0 lib/cocoapods-meitu-bin/native/linter.rb