Skip to content

Commit 340e017

Browse files
authored
Merge pull request #51 from UrsKahmann/fix/inline_comments
Fix Inline Comments
2 parents f03890a + 43c3b50 commit 340e017

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/xcode_summary/plugin.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def errors(xcode_summary)
207207

208208
def parse_location(input)
209209
file_path, line, _column = input[:file_path].split(':')
210-
Location.new(input[:file_name], file_path, line.to_i)
210+
file_name = relative_path(file_path)
211+
Location.new(file_name, file_path, line.to_i)
211212
end
212213

213214
def parse_test_location(failure)

spec/xcode_summary_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ module Danger
131131
expect(@xcode_summary).to have_received(:warn).with(
132132
instance_of(String),
133133
sticky: false,
134-
file: 'Bla.m',
134+
file: 'MyWeight/Bla.m',
135135
line: 32
136136
)
137137
expect(@xcode_summary).to have_received(:warn).with(
138138
instance_of(String),
139139
sticky: false,
140-
file: 'ISO8601DateFormatter.m',
140+
file: 'MyWeight/Pods/ISO8601DateFormatter/ISO8601DateFormatter.m',
141141
line: 176
142142
)
143143
end

0 commit comments

Comments
 (0)