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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ffd9d0b59c7ecad82f6881f19861fcd96b0516a1
4
- data.tar.gz: fde0df1341996eb7ed3336f27e19130502397ad9
2
+ SHA256:
3
+ metadata.gz: 6eeee7671e0d2ea7fa0107525dde58702c23c7bf80e46593cfed76cebc35555a
4
+ data.tar.gz: 6245f2ccf23ace28499d48d72a1f62f076275f260573d336a56c98656ff8644b
5
5
  SHA512:
6
- metadata.gz: aab7ab1a826a81b8b71d1bba2a982c35b12a1e5b03521bc190592386faeecf8c0c3605ce6eeb00f4a1b523847d769c0354673b946b0299c98bad4f2f61030ba6
7
- data.tar.gz: e5f9f91d254bf2a73e59a366bd63a2e1e8c83798d4d2d82f83f14d8d2cbd1b310c3b3a592a208dd6b5090f6b5aca9adb455b7040571b501bbc5e440569daad68
6
+ metadata.gz: 596a3743bff9867016b1926342aa4a90240065451f2b2daf4ed325e6fe6c8f77413f8b796d08501db5a67a18b2a6aee01f6a5e44ce93a6c53e48c5851a620a6f
7
+ data.tar.gz: 4e124cf4a7243e2785947b3a8a2e00604e0062443a692f4af59f48d13c2b3fd587435109a8818abf8059b2f76f143d462469431d114df5b4d24f5fe451b5e0cd
@@ -82,7 +82,8 @@ module Danger
82
82
  config: config_file_path ? Shellwords.escape(config_file_path) : nil,
83
83
  reporter: 'json',
84
84
  quiet: true,
85
- pwd: dir_selected
85
+ pwd: dir_selected,
86
+ force_exclude: ''
86
87
  }
87
88
  log "linting with options: #{options}"
88
89
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerSwiftlint
4
- VERSION = '0.16.0'
5
- SWIFTLINT_VERSION = '0.25.0'
4
+ VERSION = '0.17.0'
5
+ SWIFTLINT_VERSION = '0.25.1'
6
6
  end
@@ -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.16.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-03-28 00:00:00.000000000 Z
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.10
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.