danger-swiftlint 0.35.0 → 0.36.0

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: b6e1200909657d94cec9da1e9fc617bc01a0e29dca575126562d6bc299f4edd0
4
- data.tar.gz: e82e8616bb481ff2ddf7047306e4597a1703f617bef9f45f197296dc1a977a01
3
+ metadata.gz: d417c3f952eca5fd2e36ddea9de9c039b6ab81762bc0078c729f9dfab296678d
4
+ data.tar.gz: fa7c608665ef022e3729c32b9ab25f6eaf9cc59cb4b95aa159e722cac8ad4604
5
5
  SHA512:
6
- metadata.gz: b54e98fe52efafa133587d0025916a7fbc4d862ceddea9c8ba9eea948821955d507a2e3f32d357415ea16c0ae0a00a86c805ce9f67045fd413cec24f052474bb
7
- data.tar.gz: b0b6deeabc4a1b8af50d7cff4ffcedf4d4323c2d577f0a3df077c0a14c47825f933c5eff40fd6b1ee8048c9ca4ff4e340316f16ab918fd697f071e436911d6ea
6
+ metadata.gz: ab77022a2c2a43eb1760cce05900083231c7581eabcfdaaf27b529c880640c696d2ce8e1969197029eaad711f5daebf1c578c41b497b782f9ada3b352c2964b4
7
+ data.tar.gz: 6f1fffe7b94ccefbc32a32077b94b6e3e2790195732177d6c336bc300e5e86eb2a6bc1606df48896ea2459eeb4ab57abf7a2367f7d4f0fe2b24493681663f00c
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerSwiftlint
4
- VERSION = '0.35.0'
5
- SWIFTLINT_VERSION = '0.54.0'
6
- SWIFTLINT_HASH = 'b3ced098efb95de601fba7c299fbb123'
4
+ VERSION = '0.36.0'
5
+ SWIFTLINT_VERSION = '0.55.1'
6
+ SWIFTLINT_HASH = '506b49a6d71512b25a511bca01065503'
7
7
  end
@@ -597,7 +597,36 @@ module Danger
597
597
  expect(issues.length).to eql(warnings.length + errors.length)
598
598
  end
599
599
  end
600
-
600
+
601
+ context 'when select_block is implemented' do
602
+ it 'fails if fail_on_error is true' do
603
+ # given
604
+ @swiftlint.strict = false
605
+ allow(@swiftlint).to receive(:fail)
606
+ allow_any_instance_of(Swiftlint).to receive(:lint)
607
+ .and_return(@swiftlint_multiviolation_response)
608
+
609
+ # when
610
+ @swiftlint.lint_files('spec/fixtures/*.swift', inline_mode: true, fail_on_error: true) { |_| true }
611
+
612
+ # then
613
+ expect(@swiftlint).to have_received(:fail).at_least(:once)
614
+ end
615
+
616
+ it 'does not fail if fail_on_error is false' do
617
+ # given
618
+ @swiftlint.strict = false
619
+ allow(@swiftlint).to receive(:fail)
620
+ allow_any_instance_of(Swiftlint).to receive(:lint)
621
+ .and_return(@swiftlint_multiviolation_response)
622
+
623
+ # when
624
+ @swiftlint.lint_files('spec/fixtures/*.swift', inline_mode: true, fail_on_error: false) { |_| true }
625
+
626
+ # then
627
+ expect(@swiftlint).not_to have_received(:fail)
628
+ end
629
+ end
601
630
 
602
631
  it 'parses environment variables set within the swiftlint config' do
603
632
  ENV['ENVIRONMENT_EXAMPLE'] = 'excluded_dir'
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.35.0
4
+ version: 0.36.0
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: 2024-01-29 00:00:00.000000000 Z
15
+ date: 2024-05-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: danger