thefuntasty_danger 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/Dangerfile +18 -10
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c7f792b47db02ecc9a3d9fb29a8452cefb2867c
4
- data.tar.gz: 51bebddf360ec2e05637db73cfaed85908e9762c
3
+ metadata.gz: ee28e530b3229cf235c4e55d4b8f945a6ba59878
4
+ data.tar.gz: 47633391cb9035ea8d2b8c45290016c46bbfa4a8
5
5
  SHA512:
6
- metadata.gz: 9576b8387b7ddd77cc304384de9466362660fa46ccabbd32c7d56c0e70b1c52e784018b750efcc6b8d4e34dc147da210cede378d290990cf44ed2c422c18f3e0
7
- data.tar.gz: f2d33b17e0af0c992d075136d56cbebbffe07c345417b0a33f73354563f2772c8c5a64aa979fd7f06e6d8473df256b13138e0ab3fef1064b7de1c96a8d3a8c81
6
+ metadata.gz: 3ae3ab493c15a392313d2415c1782537758470a069ede6620c0a30a9fe4f26b120c15846fb652532647b4546aa4378a4ab2e54385a43d9fbede538bae9db020a
7
+ data.tar.gz: 903dbea54f506e7ce84033db10e28dd22c697603ba0039c8c260167242ca68cba537ccf06df4f262d20a6b575e95cef91af3e335588a7693949e9e5828e4614a
data/Dangerfile CHANGED
@@ -2,6 +2,8 @@
2
2
  # Configuration
3
3
  jira_link = "https://thefuntasty.atlassian.net/browse/"
4
4
  max_pr_length = 500
5
+ swiftlint_binary_path = './Pods/SwiftLint/swiftlint'
6
+ build_report_file = 'build/reports/errors.json'
5
7
 
6
8
  # Regular expressions for PR title and branch
7
9
  title_name_check = /^([A-Z]{2,}-\d+)\s\w{2,}/
@@ -34,15 +36,21 @@ if title_contains_jira_id then
34
36
  message(":large_blue_diamond: [#{jira_id}](#{jira_link}#{jira_id})")
35
37
  end
36
38
 
37
- # Lint files
38
- swiftlint.binary_path = './Pods/SwiftLint/swiftlint'
39
- swiftlint.max_num_violations = 20
40
- swiftlint.lint_files inline_mode: true
41
-
42
- # Ignoring warnings from Pods
43
- xcode_summary.ignored_files = '**/Pods/**'
44
- xcode_summary.inline_mode = true
45
- xcode_summary.report 'build/reports/errors.json'
46
-
47
39
  # Check commit messages
48
40
  commit_lint.check warn: :all
41
+
42
+ # Lint Swift files if possible
43
+ if File.file?(swiftlint_binary_path) then
44
+ swiftlint.binary_path = './Pods/SwiftLint/swiftlint'
45
+ swiftlint.max_num_violations = 20
46
+ swiftlint.lint_files inline_mode: true
47
+ end
48
+
49
+ # Send warning from iOS build if possible
50
+ if File.file?(build_report_file)
51
+ xcode_summary.ignored_files = '**/Pods/**'
52
+ xcode_summary.inline_mode = true
53
+ xcode_summary.report build_report_file
54
+ end
55
+
56
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thefuntasty_danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matěj Kašpar Jirásek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-28 00:00:00.000000000 Z
11
+ date: 2018-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger