class Codecov::SimpleCov::Formatter

def shortened_filename(file)

Returns:
  • (String) -

Parameters:
  • file (SimpleCov::SourceFile) -- The file to use.
def shortened_filename(file)
  file.filename.gsub(/^#{::SimpleCov.root}/, '.').gsub(%r{^\./}, '')
end