From 635fa8dc98ed370331fd3c5c948f5b9b50d2584d Mon Sep 17 00:00:00 2001 From: Maxim Sorokin Date: Tue, 30 Jun 2020 16:55:06 +0300 Subject: [PATCH] added style guide and fixed naming --- xcode/build_phases/swiftlint.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xcode/build_phases/swiftlint.rb b/xcode/build_phases/swiftlint.rb index 3fd404a..c954d4a 100644 --- a/xcode/build_phases/swiftlint.rb +++ b/xcode/build_phases/swiftlint.rb @@ -1,3 +1,4 @@ +#https://github.com/TouchInstinct/Styleguide/blob/multiple_swiftlint/IOS/Guides/BuildScripts/Multiple_Swiftlint_Guide.md require 'yaml' require 'optparse' require 'ostruct' @@ -65,11 +66,11 @@ class SettingOption def initialize @options = OpenStruct.new OptionParser.new do |opt| - opt.on('-s', '--source_directory STRING', 'The directory of start') { |option| @options.source_directory = option } + opt.on('-s', '--source_directory STRING', 'The directory of source') { |option| @options.source_directory = option } opt.on('-p', '--pods_directory STRING', 'The directory of pods') { |option| @options.pods_directory = option } opt.on('-c', '--check_mode MODE', 'The mode of check is "fully" or "simplified"') { |option| @options.check_mode = option } - opt.on('-u', '--use_multiple BOOL', 'the flag indicates the use of multiple yaml swiftlint configurations') { |option| @options.use_multiple = option } - opt.on('-d', '--source_date DATE', 'The date of grouping files according new and old swiftlint rules') { |option| @options.source_date = option } + opt.on('-u', '--use_multiple BOOL', 'The flag indicates the use of multiple yaml swiftlint configurations') { |option| @options.use_multiple = option } + opt.on('-d', '--source_date DATE', 'The date of grouping files according touchin and old swiftlint rules') { |option| @options.source_date = option } opt.on('-y', '--touchin_swiftlint_yaml_path STRING', 'The path to the touchin swiftlint yaml relative to the source directory') { |option| @options.touchin_swiftlint_yaml_path = option } opt.on('-g', '--depth_git_count Int', 'The depth between the git directory and sources directory') { |option| @options.depth_git_count = option } end.parse!