danger-swiftlint 0.30.1 → 0.30.2

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: 2d752a2629a03d820751dadd013a5612306d79d746188a0162d83cd821fe89fa
4
- data.tar.gz: 70dc6132f6ca69e68be576039908008af2a651485770713dcd27ed381d513059
3
+ metadata.gz: 7963cc85da36b0eb2486e86521cafff66748bf214f58be27a08c340293611911
4
+ data.tar.gz: f424cb4b6a26f618baeb4f1ba0e7492e1c659e805b4c147536b7ed8c2febf002
5
5
  SHA512:
6
- metadata.gz: b9f00f2d1917aa217c7f26798f7cd559fb13a578030837d8c5571b4b7d38543dd62fb0906b993a65c4c77c0157395b806aa5ab9432db64db0c21f43435998f4f
7
- data.tar.gz: a8615e231514973d705a332301b31e95a23a84218c9ba72b4259c718483ef4ebdd1229ec47e5b4f5d2436f476496c68eeef54023d5f64fd313c62e5ed9480704
6
+ metadata.gz: a922505d6bed4e73dba9662d0efb293aeef09240683928569543c30dc0c28e4a8281066df8cfec95b5187811b5f4a9673d708be528c70ba06d683ad3e6a312ae
7
+ data.tar.gz: 984966b33dda54ff26381508a4b14c3eb2ae14caa8a56d2130ff427c3dd4686d4e143ff1c720995a920d420e48b9eaa877b272950920c8f4adf79cfdc1c26ed9
data/lib/danger_plugin.rb CHANGED
@@ -369,7 +369,7 @@ module Danger
369
369
  lines << line_number
370
370
  end
371
371
  line_number += 1 if line_number > 0 && !git_removed_line_regex.match?(line)
372
- line_number = starting_line_number if line_number == 0 && starting_line_number > 0
372
+ line_number = starting_line_number if starting_line_number > 0
373
373
  end
374
374
  lines
375
375
  end
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerSwiftlint
4
- VERSION = '0.30.1'
4
+ VERSION = '0.30.2'
5
5
  SWIFTLINT_VERSION = '0.46.2'
6
6
  SWIFTLINT_HASH = '20dbcc13788993dd27b1076a13ca647d'
7
7
  end
@@ -431,8 +431,8 @@ module Danger
431
431
  allow(@swiftlint.git.diff_for_file).to receive(:patch).and_return(git_diff)
432
432
  modified_lines = @swiftlint.git_modified_lines("spec/fixtures/SwiftFile.swift")
433
433
  expect(modified_lines).to_not be_empty
434
- expect(modified_lines.length).to eql(24)
435
- expect(modified_lines).to eql([15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 42])
434
+ expect(modified_lines.length).to eql(28)
435
+ expect(modified_lines).to eql([15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 42, 64, 65, 66, 67])
436
436
  end
437
437
 
438
438
  it 'Get git modified files info' do
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.30.1
4
+ version: 0.30.2
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: 2022-02-27 00:00:00.000000000 Z
15
+ date: 2022-03-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: danger