diff --git a/lib/brakeman/report/report_codeclimate.rb b/lib/brakeman/report/report_codeclimate.rb index 6c1d6f9278..2cfb0fcd38 100644 --- a/lib/brakeman/report/report_codeclimate.rb +++ b/lib/brakeman/report/report_codeclimate.rb @@ -73,7 +73,7 @@ def file_path(warning) if tracker.options[:path_prefix] (Pathname.new(tracker.options[:path_prefix]) + Pathname.new(warning.file.relative)).to_s else - warning.file + warning.relative_path end end end