danger-swiftlint 0.12.0 → 0.12.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.
- checksums.yaml +4 -4
- data/lib/danger_plugin.rb +4 -4
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70ad9b0b82b98354595e3b7958285372bbd8baa8
|
|
4
|
+
data.tar.gz: e204089364bb37d6fdf37d1853c7f1061f6addce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 117c727f0ab4a88885f689b2bd0dbafc002afc7b6078067c938085315fc78aa3ceef67e2581183275c7c0994f8a54f5798db232b5c8bf4b23f97d13e0fcd31d3
|
|
7
|
+
data.tar.gz: f90a6b0777210a0c8d563464c6fc7d4da8d820c4936c614e3d42655a7db3b189311578e8d13c85ff2b819e199b390e107400241781a13561f2a8f84958c01047
|
data/lib/danger_plugin.rb
CHANGED
|
@@ -100,17 +100,17 @@ module Danger
|
|
|
100
100
|
# Report with inline comment
|
|
101
101
|
send_inline_comment(warnings, 'warn')
|
|
102
102
|
send_inline_comment(errors, 'fail')
|
|
103
|
-
warn other_issues_message(other_issues_count) if other_issues_count
|
|
104
|
-
elsif warnings.count
|
|
103
|
+
warn other_issues_message(other_issues_count) if other_issues_count > 0
|
|
104
|
+
elsif warnings.count > 0 || errors.count > 0
|
|
105
105
|
# Report if any warning or error
|
|
106
106
|
message = +"### SwiftLint found issues\n\n"
|
|
107
107
|
message << markdown_issues(warnings, 'Warnings') unless warnings.empty?
|
|
108
108
|
message << markdown_issues(errors, 'Errors') unless errors.empty?
|
|
109
|
-
message << "\n#{other_issues_message(other_issues_count)}" if other_issues_count
|
|
109
|
+
message << "\n#{other_issues_message(other_issues_count)}" if other_issues_count > 0
|
|
110
110
|
markdown message
|
|
111
111
|
|
|
112
112
|
# Fail Danger on errors
|
|
113
|
-
if fail_on_error && errors.count
|
|
113
|
+
if fail_on_error && errors.count > 0
|
|
114
114
|
raise 'Failed due to SwiftLint errors'
|
|
115
115
|
end
|
|
116
116
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-swiftlint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ash Furrow
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2018-01-
|
|
15
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: danger
|