jeanparpaillon / heritage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task: Heritage

Heritage is an application for displaying source code metadata thanks to Software Heritage Archive.

Base repository has been set up to remove overhead work. Feel free to start a new repository if you prefer to work from a blank slate.

Software Heritage Archive

The project aims at collecting and archiving each and every open source code. The archive is accessible through both a web interface and a REST API.

Requirements

You must demonstrate the following:

  • you are able to write clean and legible code
  • you are able to write performant code
  • you are able to organise, document your code and your commits
  • you are able to write tests that backs application code

Objectives

Given a directory, the application must return:

  • if this directory is part of an indexed project on Software Heritage
  • if it is indexed, the list of files and associated license, if any

Example

iex(1)> results = Heritage.infos("/usr/src/linux")
[%Content{licenses: ["GPL-2.0"], name: ...} ...]

Hints

About


Languages

Language:Elixir 100.0%