danger-swiftlint 0.35.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/version.rb +3 -3
- data/spec/danger_plugin_spec.rb +30 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d417c3f952eca5fd2e36ddea9de9c039b6ab81762bc0078c729f9dfab296678d
|
4
|
+
data.tar.gz: fa7c608665ef022e3729c32b9ab25f6eaf9cc59cb4b95aa159e722cac8ad4604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
SWIFTLINT_VERSION = '0.
|
6
|
-
SWIFTLINT_HASH = '
|
4
|
+
VERSION = '0.36.0'
|
5
|
+
SWIFTLINT_VERSION = '0.55.1'
|
6
|
+
SWIFTLINT_HASH = '506b49a6d71512b25a511bca01065503'
|
7
7
|
end
|
data/spec/danger_plugin_spec.rb
CHANGED
@@ -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.
|
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-
|
15
|
+
date: 2024-05-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: danger
|