fastlane-plugin-fastci 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beca80c5ed38df0f56430ea53056399285eaf4eb465c7918cca00dc6a0e65d75
4
- data.tar.gz: b22ec9b71c62abc98c57860e140781f5cf3753d86498e696b68c3a6e0a131fe6
3
+ metadata.gz: 9cdc516b58bb5440ca5f24a496c5725a231a19d1986cf26d2ae4f914f2a0bc04
4
+ data.tar.gz: eea7c54fa1c128f082a4d289569b6ddbd191714cb25106365165b7242ee4805f
5
5
  SHA512:
6
- metadata.gz: 81c9c0f0ff28e37828515264276656128d3e14c8eb4c4b99add923a55e95e8876c59a1376ed4fde9951b4cf680aeff73ba4a25c51226c0208aa7e8c92904068a
7
- data.tar.gz: 468dfc9af7d196b7c3d5360881aefae651a58ec2f240d9233c0063c20d2b91c60e04ef39e6a42d66cfdb2ea3e494f44690ace64239558eb60223fec53f4ff3d6
6
+ metadata.gz: 7851b7b24d473f10d817a365829539e10c6fccbce662a5d4be9d686d2b543f15fb7f80b4f017922b215f630ca5dccda8bccdbb60f1363ab4ef5f60e3949d974c
7
+ data.tar.gz: 878f45bebf4ef2030591a709300cbdaa6e5b01aeed0b5a6b26ad60543a3303827e0fa0c373f1889615549db2abeb18eab3e07480a57844f8383e6425aaef5932
@@ -36,10 +36,12 @@ module Fastlane
36
36
  log_dir = File.expand_path(Constants.BUILD_LOG_DIR)
37
37
  log_file = sh("ls -t #{log_dir}/*.log | head -n 1").strip
38
38
 
39
+ yml_file = File.expand_path(".swiftlint.yml")
40
+
39
41
  analyze_file = File.expand_path(Constants.SWIFTLINT_ANALYZE_FILE)
40
42
 
41
43
  if is_all
42
- sh "swiftlint analyze --compiler-log-path #{log_file} > #{analyze_file} || true"
44
+ sh "swiftlint analyze --config #{yml_file} --compiler-log-path #{log_file} --force-exclude > #{analyze_file} || true"
43
45
  else
44
46
  commit_hash = params[:commit_hash] || read_cached_txt(Constants.COMMIT_HASH_FILE)
45
47
  swift_files = CommonHelper.get_git_modified_swift_files(commit_hash)
@@ -50,7 +52,7 @@ module Fastlane
50
52
  end
51
53
 
52
54
  files_to_analyze = swift_files.join(" ")
53
- sh "swiftlint analyze --compiler-log-path #{log_file} #{files_to_analyze} > #{analyze_file} || true"
55
+ sh "swiftlint analyze --config #{yml_file} --compiler-log-path #{log_file} #{files_to_analyze} --force-exclude > #{analyze_file} || true"
54
56
  end
55
57
 
56
58
  # 输出代码分析报告
@@ -175,7 +175,6 @@ module Fastlane
175
175
  configuration: configuration
176
176
  )
177
177
  # 结果复制到桌面
178
- FileUtils.cp(SWIFTLINT_HTML_FILE, target_path)
179
178
  FileUtils.cp(SWIFTLINT_ANALYZE_HTML_FILE, target_path)
180
179
  UI.message("*************| 代码分析完成 |*************")
181
180
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fastci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - watermelon