View Source Audit.Github (Audit v0.1.5)

Helper functions for generating Github URLs from filename and line number

Link to this section Summary

Link to this section Types

@type filename_t() :: binary()
@type line_number_t() :: binary() | non_neg_integer()
@type url_t() :: binary()

Link to this section Functions

@spec branch() :: binary() | nil
@spec commit_hash() :: binary() | nil
Link to this function

format_string(base, commit_hash, filename, line)

View Source
@spec format_string(binary() | nil, binary() | nil, filename_t(), line_number_t()) ::
  url_t() | nil
@spec get_url(binary() | nil) :: binary() | nil
@spec git_url(filename_t(), line_number_t()) :: url_t() | nil
@spec remote(binary() | nil) :: binary() | nil
@spec to_https(binary() | nil) :: binary() | nil