danger-swiftlint 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/danger_plugin.rb +2 -1
- data/lib/version.rb +2 -2
- data/spec/danger_plugin_spec.rb +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6eeee7671e0d2ea7fa0107525dde58702c23c7bf80e46593cfed76cebc35555a
|
4
|
+
data.tar.gz: 6245f2ccf23ace28499d48d72a1f62f076275f260573d336a56c98656ff8644b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 596a3743bff9867016b1926342aa4a90240065451f2b2daf4ed325e6fe6c8f77413f8b796d08501db5a67a18b2a6aee01f6a5e44ce93a6c53e48c5851a620a6f
|
7
|
+
data.tar.gz: 4e124cf4a7243e2785947b3a8a2e00604e0062443a692f4af59f48d13c2b3fd587435109a8818abf8059b2f76f143d462469431d114df5b4d24f5fe451b5e0cd
|
data/lib/danger_plugin.rb
CHANGED
data/lib/version.rb
CHANGED
data/spec/danger_plugin_spec.rb
CHANGED
@@ -48,6 +48,18 @@ module Danger
|
|
48
48
|
ENV['ENVIRONMENT_EXAMPLE'] = nil
|
49
49
|
end
|
50
50
|
|
51
|
+
it 'specifies --force-exclude when invoking SwiftLint' do
|
52
|
+
expect_any_instance_of(Swiftlint).to receive(:lint)
|
53
|
+
.with(hash_including(force_exclude: ''), '')
|
54
|
+
.and_return(@swiftlint_response)
|
55
|
+
|
56
|
+
@swiftlint.lint_files('spec/fixtures/*.swift')
|
57
|
+
|
58
|
+
output = @swiftlint.status_report[:markdowns].first.to_s
|
59
|
+
expect(output).to include('SwiftLint found issues')
|
60
|
+
expect(output).to include('SwiftFile.swift | 13 | Force casts should be avoided.')
|
61
|
+
end
|
62
|
+
|
51
63
|
it 'accept files as arguments' do
|
52
64
|
expect_any_instance_of(Swiftlint).to receive(:lint)
|
53
65
|
.with(hash_including(path: File.expand_path('spec/fixtures/SwiftFile.swift')), '')
|
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.17.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: 2018-
|
15
|
+
date: 2018-05-08 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: danger
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.6
|
184
|
+
rubygems_version: 2.7.6
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: A Danger plugin for linting Swift with SwiftLint.
|