Sha256: 0ed8f13c0c4172b4affc706281fbb00e7b4468cfe3b2ef37688270e55a95f649

Contents?: true

Size: 830 Bytes

Versions: 1

Compression:

Stored size: 830 Bytes

Contents

module Fastlane
  module Actions
    class SwiftlintAction < Action
      def self.run(params)
        raise "You have to install swiftlint using `brew install swiftlint`".red if `which swiftlint`.to_s.length == 0
        Actions.sh("swiftlint")
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Run swift code validation using SwiftLint"
      end

      def self.details
      end

      def self.available_options
        [
        ]
      end

      def self.output
      end

      def self.return_value
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastlane-1.41.0 lib/fastlane/actions/swiftlint.rb