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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8be68ded24b96b58bdd94c5c100ed819fcea439f
4
- data.tar.gz: c22a1ac2e4d56c2d19e9aad5ab84146ff3b0824b
3
+ metadata.gz: 70ad9b0b82b98354595e3b7958285372bbd8baa8
4
+ data.tar.gz: e204089364bb37d6fdf37d1853c7f1061f6addce
5
5
  SHA512:
6
- metadata.gz: e2e83319fa891bcccf74e4c027cbee79742e56006e484fadbd9e51fdf7c44cf99e666f6867db16cfbf6524089ffb0ac921cef0097e82efd58a6768553a33aa5c
7
- data.tar.gz: d7e95e8fa0baa9a2550feb75b78e50357a3a4ca144e2fae8b28da9fd2bf2994f2566d78a6b3937e7eb1a66ed08901947467f472e9bbf2e401d3edf82de3245df
6
+ metadata.gz: 117c727f0ab4a88885f689b2bd0dbafc002afc7b6078067c938085315fc78aa3ceef67e2581183275c7c0994f8a54f5798db232b5c8bf4b23f97d13e0fcd31d3
7
+ data.tar.gz: f90a6b0777210a0c8d563464c6fc7d4da8d820c4936c614e3d42655a7db3b189311578e8d13c85ff2b819e199b390e107400241781a13561f2a8f84958c01047
@@ -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.positive?
104
- elsif warnings.count.positive? || errors.count.positive?
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.positive?
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.positive?
113
+ if fail_on_error && errors.count > 0
114
114
  raise 'Failed due to SwiftLint errors'
115
115
  end
116
116
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerSwiftlint
4
- VERSION = '0.12.0'
4
+ VERSION = '0.12.1'
5
5
  SWIFTLINT_VERSION = '0.20.1'
6
6
  end
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.0
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-05 00:00:00.000000000 Z
15
+ date: 2018-01-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: danger